{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "file_path = \"./IMDB-Movie-Data.csv\"\n",
    "df = pd.read_csv(file_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "RangeIndex: 1000 entries, 0 to 999\n",
      "Data columns (total 12 columns):\n",
      " #   Column              Non-Null Count  Dtype  \n",
      "---  ------              --------------  -----  \n",
      " 0   Rank                1000 non-null   int64  \n",
      " 1   Title               1000 non-null   object \n",
      " 2   Genre               1000 non-null   object \n",
      " 3   Description         1000 non-null   object \n",
      " 4   Director            1000 non-null   object \n",
      " 5   Actors              1000 non-null   object \n",
      " 6   Year                1000 non-null   int64  \n",
      " 7   Runtime (Minutes)   1000 non-null   int64  \n",
      " 8   Rating              1000 non-null   float64\n",
      " 9   Votes               1000 non-null   int64  \n",
      " 10  Revenue (Millions)  872 non-null    float64\n",
      " 11  Metascore           936 non-null    float64\n",
      "dtypes: float64(3), int64(4), object(5)\n",
      "memory usage: 93.9+ KB\n"
     ]
    }
   ],
   "source": [
    "df.info()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Rank</th>\n",
       "      <th>Title</th>\n",
       "      <th>Genre</th>\n",
       "      <th>Description</th>\n",
       "      <th>Director</th>\n",
       "      <th>Actors</th>\n",
       "      <th>Year</th>\n",
       "      <th>Runtime (Minutes)</th>\n",
       "      <th>Rating</th>\n",
       "      <th>Votes</th>\n",
       "      <th>Revenue (Millions)</th>\n",
       "      <th>Metascore</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>Guardians of the Galaxy</td>\n",
       "      <td>Action,Adventure,Sci-Fi</td>\n",
       "      <td>A group of intergalactic criminals are forced ...</td>\n",
       "      <td>James Gunn</td>\n",
       "      <td>Chris Pratt, Vin Diesel, Bradley Cooper, Zoe S...</td>\n",
       "      <td>2014</td>\n",
       "      <td>121</td>\n",
       "      <td>8.1</td>\n",
       "      <td>757074</td>\n",
       "      <td>333.13</td>\n",
       "      <td>76.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>Prometheus</td>\n",
       "      <td>Adventure,Mystery,Sci-Fi</td>\n",
       "      <td>Following clues to the origin of mankind, a te...</td>\n",
       "      <td>Ridley Scott</td>\n",
       "      <td>Noomi Rapace, Logan Marshall-Green, Michael Fa...</td>\n",
       "      <td>2012</td>\n",
       "      <td>124</td>\n",
       "      <td>7.0</td>\n",
       "      <td>485820</td>\n",
       "      <td>126.46</td>\n",
       "      <td>65.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>Split</td>\n",
       "      <td>Horror,Thriller</td>\n",
       "      <td>Three girls are kidnapped by a man with a diag...</td>\n",
       "      <td>M. Night Shyamalan</td>\n",
       "      <td>James McAvoy, Anya Taylor-Joy, Haley Lu Richar...</td>\n",
       "      <td>2016</td>\n",
       "      <td>117</td>\n",
       "      <td>7.3</td>\n",
       "      <td>157606</td>\n",
       "      <td>138.12</td>\n",
       "      <td>62.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>Sing</td>\n",
       "      <td>Animation,Comedy,Family</td>\n",
       "      <td>In a city of humanoid animals, a hustling thea...</td>\n",
       "      <td>Christophe Lourdelet</td>\n",
       "      <td>Matthew McConaughey,Reese Witherspoon, Seth Ma...</td>\n",
       "      <td>2016</td>\n",
       "      <td>108</td>\n",
       "      <td>7.2</td>\n",
       "      <td>60545</td>\n",
       "      <td>270.32</td>\n",
       "      <td>59.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>Suicide Squad</td>\n",
       "      <td>Action,Adventure,Fantasy</td>\n",
       "      <td>A secret government agency recruits some of th...</td>\n",
       "      <td>David Ayer</td>\n",
       "      <td>Will Smith, Jared Leto, Margot Robbie, Viola D...</td>\n",
       "      <td>2016</td>\n",
       "      <td>123</td>\n",
       "      <td>6.2</td>\n",
       "      <td>393727</td>\n",
       "      <td>325.02</td>\n",
       "      <td>40.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   Rank                    Title                     Genre  \\\n",
       "0     1  Guardians of the Galaxy   Action,Adventure,Sci-Fi   \n",
       "1     2               Prometheus  Adventure,Mystery,Sci-Fi   \n",
       "2     3                    Split           Horror,Thriller   \n",
       "3     4                     Sing   Animation,Comedy,Family   \n",
       "4     5            Suicide Squad  Action,Adventure,Fantasy   \n",
       "\n",
       "                                         Description              Director  \\\n",
       "0  A group of intergalactic criminals are forced ...            James Gunn   \n",
       "1  Following clues to the origin of mankind, a te...          Ridley Scott   \n",
       "2  Three girls are kidnapped by a man with a diag...    M. Night Shyamalan   \n",
       "3  In a city of humanoid animals, a hustling thea...  Christophe Lourdelet   \n",
       "4  A secret government agency recruits some of th...            David Ayer   \n",
       "\n",
       "                                              Actors  Year  Runtime (Minutes)  \\\n",
       "0  Chris Pratt, Vin Diesel, Bradley Cooper, Zoe S...  2014                121   \n",
       "1  Noomi Rapace, Logan Marshall-Green, Michael Fa...  2012                124   \n",
       "2  James McAvoy, Anya Taylor-Joy, Haley Lu Richar...  2016                117   \n",
       "3  Matthew McConaughey,Reese Witherspoon, Seth Ma...  2016                108   \n",
       "4  Will Smith, Jared Leto, Margot Robbie, Viola D...  2016                123   \n",
       "\n",
       "   Rating   Votes  Revenue (Millions)  Metascore  \n",
       "0     8.1  757074              333.13       76.0  \n",
       "1     7.0  485820              126.46       65.0  \n",
       "2     7.3  157606              138.12       62.0  \n",
       "3     7.2   60545              270.32       59.0  \n",
       "4     6.2  393727              325.02       40.0  "
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "6.723199999999999"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 获取平均评分\n",
    "df[\"Rating\"].mean()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0                James Gunn\n",
       "1              Ridley Scott\n",
       "2        M. Night Shyamalan\n",
       "3      Christophe Lourdelet\n",
       "4                David Ayer\n",
       "               ...         \n",
       "995               Billy Ray\n",
       "996                Eli Roth\n",
       "997              Jon M. Chu\n",
       "998          Scot Armstrong\n",
       "999        Barry Sonnenfeld\n",
       "Name: Director, Length: 1000, dtype: object"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 导演人数\n",
    "df[\"Director\"]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['James Gunn',\n",
       " 'Ridley Scott',\n",
       " 'M. Night Shyamalan',\n",
       " 'Christophe Lourdelet',\n",
       " 'David Ayer',\n",
       " 'Yimou Zhang',\n",
       " 'Damien Chazelle',\n",
       " 'Sean Foley',\n",
       " 'James Gray',\n",
       " 'Morten Tyldum',\n",
       " 'David Yates',\n",
       " 'Theodore Melfi',\n",
       " 'Gareth Edwards',\n",
       " 'Ron Clements',\n",
       " 'Nacho Vigalondo',\n",
       " 'Chris Renaud',\n",
       " 'Mel Gibson',\n",
       " 'Paul Greengrass',\n",
       " 'Garth Davis',\n",
       " 'Denis Villeneuve',\n",
       " 'Stephen Gaghan',\n",
       " 'Kenneth Lonergan',\n",
       " 'Ben Young',\n",
       " 'Walt Dohrn',\n",
       " 'Roland Emmerich',\n",
       " 'Dominique Abel',\n",
       " 'S.S. Rajamouli',\n",
       " 'Phillip Guzman',\n",
       " 'Jon Lucas',\n",
       " 'Justin Kurzel',\n",
       " 'John Hamburg',\n",
       " 'Tom Ford',\n",
       " 'Bryan Singer',\n",
       " 'Tim Miller',\n",
       " 'Paul W.S. Anderson',\n",
       " 'Anthony Russo',\n",
       " 'Christopher Nolan',\n",
       " 'Scott Derrickson',\n",
       " 'Antoine Fuqua',\n",
       " 'Patrick Read Johnson',\n",
       " 'Greg Tiernan',\n",
       " 'Barry Jenkins',\n",
       " 'Shawn Burkett',\n",
       " 'John Lee Hancock',\n",
       " 'Ricardo de Montreuil',\n",
       " 'Rob Marshall',\n",
       " 'John Madden',\n",
       " 'Scott Hicks',\n",
       " 'Justin Lin',\n",
       " 'Sean Penn',\n",
       " 'J.J. Abrams',\n",
       " 'Anna Foerster',\n",
       " 'Garry Marshall',\n",
       " 'Chad Stahelski',\n",
       " 'Christopher Nolan',\n",
       " 'Martin Scorsese',\n",
       " 'Fede Alvarez',\n",
       " 'Thea Sharrock',\n",
       " 'Lone Scherfig',\n",
       " 'Clint Eastwood',\n",
       " 'Zack Snyder',\n",
       " 'André Øvredal',\n",
       " 'Tate Taylor',\n",
       " 'Sam Taylor-Johnson',\n",
       " 'Christopher Nolan',\n",
       " 'Matthew Vaughn',\n",
       " 'Peter Berg',\n",
       " 'George Miller',\n",
       " 'Robin Swicord',\n",
       " 'Peter Berg',\n",
       " 'Terry George',\n",
       " 'Robert Zemeckis',\n",
       " 'J.A. Bayona',\n",
       " 'David Frankel',\n",
       " 'Byron Howard',\n",
       " 'Gore Verbinski',\n",
       " 'Joss Whedon',\n",
       " 'Quentin Tarantino',\n",
       " 'Gore Verbinski',\n",
       " 'Paul Feig',\n",
       " 'Christopher Nolan',\n",
       " 'Matt Ross',\n",
       " 'Martin Scorsese',\n",
       " 'David Fincher',\n",
       " 'James Wan',\n",
       " 'Colin Trevorrow',\n",
       " 'Ben Affleck',\n",
       " 'James Cameron',\n",
       " 'Quentin Tarantino',\n",
       " \"Gavin O'Connor\",\n",
       " 'Denis Villeneuve',\n",
       " 'Duncan Jones',\n",
       " 'Tate Taylor',\n",
       " 'Todd Phillips',\n",
       " 'Joss Whedon',\n",
       " 'Shane Black',\n",
       " 'Makoto Shinkai',\n",
       " 'Jeremy Gillespie',\n",
       " 'Olivier Assayas',\n",
       " 'Martin Scorsese',\n",
       " 'Brian Helgeland',\n",
       " 'Kenneth Branagh',\n",
       " 'Ridley Scott',\n",
       " 'Oriol Paulo',\n",
       " 'Guy Ritchie',\n",
       " 'David Mackenzie',\n",
       " 'Taylor Hackford',\n",
       " 'David Yates',\n",
       " 'Katie Holmes',\n",
       " 'Alex Garland',\n",
       " 'Greg McLean',\n",
       " 'Steve McQueen',\n",
       " 'Ana Lily Amirpour',\n",
       " 'Zack Snyder',\n",
       " 'David Yates',\n",
       " 'Josh Gordon',\n",
       " 'Nicolas Winding Refn',\n",
       " 'Nitesh Tiwari',\n",
       " 'Dan Trachtenberg',\n",
       " 'Andrew Stanton',\n",
       " 'Tim Burton',\n",
       " 'Neil Burger',\n",
       " 'Jake Szymanski',\n",
       " 'Todor Chapkanov',\n",
       " 'Christopher Nolan',\n",
       " 'Jon Favreau',\n",
       " 'Michael Bay',\n",
       " 'Henry Joost',\n",
       " 'Phyllida Lloyd',\n",
       " 'Alejandro González Iñárritu',\n",
       " 'Denzel Washington',\n",
       " 'Rob Marshall',\n",
       " 'Jaume Collet-Serra',\n",
       " 'Damien Chazelle',\n",
       " 'Justin Lin',\n",
       " 'Derek Cianfrance',\n",
       " 'Ethan Coen',\n",
       " 'Baz Luhrmann',\n",
       " 'Martin Scorsese',\n",
       " 'Martin Koolhoven',\n",
       " 'J.J. Abrams',\n",
       " 'Thor Freudenthal',\n",
       " 'Adam McKay',\n",
       " 'Lenny Abrahamson',\n",
       " 'Quentin Tarantino',\n",
       " 'Chan-wook Park',\n",
       " 'Kelly Fremon Craig',\n",
       " 'Zack Snyder',\n",
       " 'Greg Mottola',\n",
       " 'Ron Howard',\n",
       " 'Steven Spielberg',\n",
       " 'Gary Ross',\n",
       " 'Elizabeth Wood',\n",
       " 'Denis Villeneuve',\n",
       " 'David Lynch',\n",
       " 'Colin Strause',\n",
       " 'Guillermo del Toro',\n",
       " 'Glenn Ficarra',\n",
       " 'Edgar Wright',\n",
       " 'Edgar Wright',\n",
       " 'Fabio Guaglione',\n",
       " 'Ben Wheatley',\n",
       " 'Bryan Singer',\n",
       " 'Edward Zwick',\n",
       " 'Martin Campbell',\n",
       " 'Catherine Hardwicke',\n",
       " 'Jon M. Chu',\n",
       " 'Simon Curtis',\n",
       " 'Michael Bay',\n",
       " 'Sam Mendes',\n",
       " 'Dan Gilroy',\n",
       " 'Travis Knight',\n",
       " 'Jackson Stewart',\n",
       " 'Spike Jonze',\n",
       " 'Chris Buck',\n",
       " 'Brad Bird',\n",
       " 'Matt Reeves',\n",
       " 'Ben Stiller',\n",
       " 'James Wan',\n",
       " 'Peyton Reed',\n",
       " 'Sharon Maguire',\n",
       " 'Robert Eggers',\n",
       " 'Kenneth Branagh',\n",
       " 'Mateo Gil',\n",
       " 'Asghar Farhadi',\n",
       " 'Gaspar Noé',\n",
       " 'Ang Lee',\n",
       " 'Guillermo del Toro',\n",
       " 'Nicolas Winding Refn',\n",
       " 'Judd Apatow',\n",
       " 'Derek Cianfrance',\n",
       " 'April Mullen',\n",
       " 'Tom McCarthy',\n",
       " 'Luke Scott',\n",
       " \"Gavin O'Connor\",\n",
       " 'Joe Johnston',\n",
       " 'Akan Satayev',\n",
       " 'Sean Penn',\n",
       " 'Morten Tyldum',\n",
       " 'Rawson Marshall Thurber',\n",
       " 'Doug Liman',\n",
       " 'Gore Verbinski',\n",
       " 'Oliver Stone',\n",
       " 'Jon Favreau',\n",
       " 'Robert Schwentke',\n",
       " 'Matthew Vaughn',\n",
       " 'Julia Ducournau',\n",
       " 'Jim Jarmusch',\n",
       " 'Paul Feig',\n",
       " 'Colm McCarthy',\n",
       " 'Brad Peyton',\n",
       " 'Harmony Korine',\n",
       " 'Michael Bay',\n",
       " 'Spike Lee',\n",
       " 'Alan Taylor',\n",
       " 'Alex Proyas',\n",
       " 'Anthony Russo',\n",
       " 'Chris Wedge',\n",
       " 'Liam Gavin',\n",
       " 'Matthew Vaughn',\n",
       " 'Ilya Naishuller',\n",
       " 'John Lasseter',\n",
       " 'David Robert Mitchell',\n",
       " 'David Fincher',\n",
       " 'Rawson Marshall Thurber',\n",
       " 'Andrea Arnold',\n",
       " 'Yorgos Lanthimos',\n",
       " 'Nimród Antal',\n",
       " 'Robert Stromberg',\n",
       " 'Steven Shainberg',\n",
       " 'Guillermo del Toro',\n",
       " 'Andy Goddard',\n",
       " 'Mel Gibson',\n",
       " 'Christopher McQuarrie',\n",
       " 'Cedric Nicolas-Troyan',\n",
       " 'Stephen Chbosky',\n",
       " 'Pablo Larraín',\n",
       " 'D.J. Caruso',\n",
       " 'Wes Anderson',\n",
       " 'Andrew Niccol',\n",
       " 'David Ayer',\n",
       " 'Pete Docter',\n",
       " 'Ash Brannon',\n",
       " 'Alan Taylor',\n",
       " 'Chris Columbus',\n",
       " 'Tom Hooper',\n",
       " 'Alfonso Cuarón',\n",
       " 'Mike Mills',\n",
       " 'Paul Feig',\n",
       " 'Olivier Nakache',\n",
       " 'Eleanor Coppola',\n",
       " 'Yorgos Lanthimos',\n",
       " 'F. Gary Gray',\n",
       " 'Marc Webb',\n",
       " 'James Wan',\n",
       " 'Todd Phillips',\n",
       " 'Peter Berg',\n",
       " 'Rupert Wyatt',\n",
       " 'David F. Sandberg',\n",
       " 'Joseph Cedar',\n",
       " 'Alejandro González Iñárritu',\n",
       " 'Darren Aronofsky',\n",
       " 'Justin Simien',\n",
       " 'Lars von Trier',\n",
       " 'Dave Green',\n",
       " 'Eli Roth',\n",
       " 'Dan Mazer',\n",
       " 'Tom Tykwer',\n",
       " 'Gavin Hood',\n",
       " 'Jeffrey G. Hunt',\n",
       " 'Sam Mendes',\n",
       " 'Peter Jackson',\n",
       " 'Phil Lord',\n",
       " 'John Carney',\n",
       " 'Eric Summer',\n",
       " 'Joseph Kosinski',\n",
       " 'Phil Lord',\n",
       " 'David Fincher',\n",
       " 'Richard Linklater',\n",
       " 'Shane Black',\n",
       " 'Louis Leterrier',\n",
       " 'Guy Ritchie',\n",
       " 'Quentin Tarantino',\n",
       " 'Tom Hooper',\n",
       " 'Brett Ratner',\n",
       " 'Zack Snyder',\n",
       " 'Greg Mottola',\n",
       " 'Lana Wachowski',\n",
       " 'Jared Hess',\n",
       " 'Jalil Lespert',\n",
       " 'Sang-ho Yeon',\n",
       " 'Jason Moore',\n",
       " 'Nicholas Stoller',\n",
       " 'David Leveaux',\n",
       " 'Zack Snyder',\n",
       " 'Ross Katz',\n",
       " 'Mike Thurmeier',\n",
       " 'David Frankel',\n",
       " 'Brad Furman',\n",
       " 'Paul Thomas Anderson',\n",
       " 'Antoine Fuqua',\n",
       " 'Peter Berg',\n",
       " 'Drew Goddard',\n",
       " 'Fred Wolf',\n",
       " 'Jim Field Smith',\n",
       " 'Paul Thomas Anderson',\n",
       " 'James Bobin',\n",
       " 'Gary Michael Schultz',\n",
       " 'Justin Lin',\n",
       " 'Christian Ditter',\n",
       " 'John Lee Hancock',\n",
       " 'Abdellatif Kechiche',\n",
       " 'Jennifer Kent',\n",
       " 'Peter Jackson',\n",
       " 'David Yates',\n",
       " 'Bong Joon Ho',\n",
       " 'J Blakeson',\n",
       " 'Dan Berk',\n",
       " 'M. Night Shyamalan',\n",
       " 'Justin Lin',\n",
       " 'Anne Fletcher',\n",
       " 'So Yong Kim',\n",
       " 'Guy Ritchie',\n",
       " 'Andrew Niccol',\n",
       " 'David Fincher',\n",
       " 'Breck Eisner',\n",
       " 'Paul McGuigan',\n",
       " 'Roger Spottiswoode',\n",
       " 'Jeremy Saulnier',\n",
       " 'Michael Mann',\n",
       " 'Nicholas Stoller',\n",
       " 'Clint Eastwood',\n",
       " 'Jean-Marc Vallée',\n",
       " 'Steven Spielberg',\n",
       " 'Ron Howard',\n",
       " 'Mike Flanagan',\n",
       " 'David O. Russell',\n",
       " 'Alexi Pappas',\n",
       " 'Josh Boone',\n",
       " 'Frank Coraci',\n",
       " 'Justin Lin',\n",
       " 'Rian Johnson',\n",
       " 'Roland Emmerich',\n",
       " 'David Lowery',\n",
       " 'Sam Raimi',\n",
       " 'Paul W.S. Anderson',\n",
       " 'Matthew Vaughn',\n",
       " 'David O. Russell',\n",
       " 'Karyn Kusama',\n",
       " 'Woody Allen',\n",
       " 'William Oldroyd',\n",
       " 'David O. Russell',\n",
       " 'Jocelyn Moorhouse',\n",
       " 'Woody Allen',\n",
       " 'Robert Schwentke',\n",
       " 'Sergei Bodrov',\n",
       " 'Hugo Gélin',\n",
       " 'James Marsh',\n",
       " 'Evan Goldberg',\n",
       " 'Richard Curtis',\n",
       " 'Adam McKay',\n",
       " 'Jon Watts',\n",
       " 'J.J. Abrams',\n",
       " 'Ruben Fleischer',\n",
       " 'Ethan Coen',\n",
       " 'Danny Boyle',\n",
       " 'Bill Condon',\n",
       " 'Alex Ranarivelo',\n",
       " 'Marc Webb',\n",
       " 'Timur Bekmambetov',\n",
       " 'J.D. Dillard',\n",
       " 'Wes Ball',\n",
       " 'Ariel Vromen',\n",
       " 'Timur Bekmambetov',\n",
       " 'Stephen Frears',\n",
       " 'Eran Creevy',\n",
       " 'Scott Cooper',\n",
       " 'Ryan Coogler',\n",
       " 'Dan Kwan',\n",
       " 'Patrick Hughes',\n",
       " 'Jemaine Clement',\n",
       " 'Antoine Fuqua',\n",
       " 'Mike Flanagan',\n",
       " 'Steven Spielberg',\n",
       " 'Phil Lord',\n",
       " 'Baltasar Kormákur',\n",
       " 'Chris Columbus',\n",
       " 'Ridley Scott',\n",
       " 'James Mangold',\n",
       " 'Andrew Stanton',\n",
       " 'Peter Atencio',\n",
       " 'Pierre Morel',\n",
       " 'Danny Boyle',\n",
       " 'Gillies MacKinnon',\n",
       " 'Dennis Dugan',\n",
       " 'Lee Toland Krieger',\n",
       " 'Louis Leterrier',\n",
       " 'Peter Billingsley',\n",
       " 'Terry Jones',\n",
       " 'Steven Soderbergh',\n",
       " 'Kyle Balda',\n",
       " 'Rolfe Kanefsky',\n",
       " 'Nicolas Winding Refn',\n",
       " 'Pierre Coffin',\n",
       " 'Michael Hoffman',\n",
       " 'Karyn Kusama',\n",
       " 'Kathryn Bigelow',\n",
       " 'Nathan Greno',\n",
       " 'Francis Lawrence',\n",
       " 'John Francis Daley',\n",
       " 'Pierre Morel',\n",
       " 'Elizabeth Banks',\n",
       " 'Dan Scanlon',\n",
       " 'Paul Verhoeven',\n",
       " 'Dennis Gansel',\n",
       " 'Kevin Smith',\n",
       " 'Mark Williams',\n",
       " 'Joe Wright',\n",
       " 'David Yates',\n",
       " 'Steve McQueen',\n",
       " 'Joe Wright',\n",
       " 'David Ross',\n",
       " 'Burr Steers',\n",
       " 'Noam Murro',\n",
       " 'Babak Najafi',\n",
       " 'David Fincher',\n",
       " 'Frank Miller',\n",
       " 'Paul Greengrass',\n",
       " 'Srdjan Spasojevic',\n",
       " 'James DeMonaco',\n",
       " 'Rajkumar Hirani',\n",
       " 'Ben Stiller',\n",
       " 'Marc Forster',\n",
       " 'Brad Bird',\n",
       " 'Corey Asraf',\n",
       " 'Jon S. Baird',\n",
       " 'George Tillman Jr.',\n",
       " 'J.A. Bayona',\n",
       " 'Jeff Wadlow',\n",
       " 'Jeff Grace',\n",
       " 'Sam Raimi',\n",
       " 'John Crowley',\n",
       " 'Henry Selick',\n",
       " 'Derek Cianfrance',\n",
       " 'Michael J. Gallagher',\n",
       " 'Christophe Gans',\n",
       " 'Pete Travis',\n",
       " 'Taika Waititi',\n",
       " 'Don Hall',\n",
       " 'Kimberly Peirce',\n",
       " 'Jon Favreau',\n",
       " 'Jean-Marc Vallée',\n",
       " 'Christian Alvart',\n",
       " 'Antoine Fuqua',\n",
       " 'D.J. Caruso',\n",
       " 'Thomas Vinterberg',\n",
       " 'Anne Fletcher',\n",
       " 'Etan Cohen',\n",
       " 'Dennis Dugan',\n",
       " 'Sam Mendes',\n",
       " 'Ben Affleck',\n",
       " 'William Brent Bell',\n",
       " 'Mick Jackson',\n",
       " 'Michael Spierig',\n",
       " 'Rob Letterman',\n",
       " 'Guy Ritchie',\n",
       " 'Phillip Noyce',\n",
       " 'Denis Villeneuve',\n",
       " 'Neill Blomkamp',\n",
       " 'Adam McKay',\n",
       " 'Ridley Scott',\n",
       " 'Sofia Coppola',\n",
       " 'Roland Emmerich',\n",
       " 'David Yates',\n",
       " 'Ben Affleck',\n",
       " 'Dexter Fletcher',\n",
       " 'Florian Henckel von Donnersmarck',\n",
       " 'Carles Torrens',\n",
       " 'Amber Tamblyn',\n",
       " 'Justin Kurzel',\n",
       " 'Nicholas Stoller',\n",
       " 'Phillip Noyce',\n",
       " 'John Hillcoat',\n",
       " 'Paolo Genovese',\n",
       " 'Clay Kaytis',\n",
       " 'Wes Anderson',\n",
       " 'Adam Shankman',\n",
       " 'Lasse Hallström',\n",
       " 'Glenn Ficarra',\n",
       " 'Brad Bird',\n",
       " 'Jim Mickle',\n",
       " 'Albert Hughes',\n",
       " 'Matt Reeves',\n",
       " 'Ericson Core',\n",
       " 'Jonathan Glazer',\n",
       " 'Francis Lawrence',\n",
       " 'Barry Sonnenfeld',\n",
       " 'J.J. Abrams',\n",
       " 'F. Gary Gray',\n",
       " 'Pete Docter',\n",
       " 'Wes Ball',\n",
       " 'Todd Haynes',\n",
       " 'Daniel Ragussis',\n",
       " 'Paolo Sorrentino',\n",
       " 'Jaco Van Dormael',\n",
       " 'Pete Travis',\n",
       " 'Oliver Stone',\n",
       " 'Marc Webb',\n",
       " 'Elizabeth Banks',\n",
       " 'Alfonso Cuarón',\n",
       " 'Mark Herman',\n",
       " 'Antoine Fuqua',\n",
       " 'M. Night Shyamalan',\n",
       " 'S. Craig Zahler',\n",
       " 'Gregory Jacobs',\n",
       " 'Will Gluck',\n",
       " 'Ridley Scott',\n",
       " 'Neill Blomkamp',\n",
       " 'Peter Jackson',\n",
       " 'Biyi Bandele',\n",
       " 'Sean Ellis',\n",
       " 'Ridley Scott',\n",
       " 'Andrey Kravchuk',\n",
       " 'Glenn Ficarra',\n",
       " 'David Schwimmer',\n",
       " 'George Nolfi',\n",
       " 'Neill Blomkamp',\n",
       " 'Eli Roth',\n",
       " 'Gareth Edwards',\n",
       " 'Tony Gilroy',\n",
       " 'Ridley Scott',\n",
       " 'Simon Verhoeven',\n",
       " 'Tony Scott',\n",
       " 'Luc Besson',\n",
       " 'Terence Davies',\n",
       " 'Scott Waugh',\n",
       " 'Christopher McQuarrie',\n",
       " 'Steven Brill',\n",
       " 'Alexandros Avranas',\n",
       " 'Ewan McGregor',\n",
       " 'Roman Polanski',\n",
       " 'Neil Burger',\n",
       " 'Nic Mathieu',\n",
       " 'Richard LaGravenese',\n",
       " 'Mora Stephens',\n",
       " 'Jeff Nichols',\n",
       " 'Mike Birbiglia',\n",
       " 'Tim Burton',\n",
       " 'Philippe Falardeau',\n",
       " 'Ken Loach',\n",
       " 'Peyton Reed',\n",
       " 'Jeff Nichols',\n",
       " 'Josh Trank',\n",
       " 'Stephen Fingleton',\n",
       " 'Florian Gallenberger',\n",
       " 'Rob Cohen',\n",
       " 'Joel Edgerton',\n",
       " 'Gary Shore',\n",
       " 'Ron Howard',\n",
       " 'Mike Judge',\n",
       " 'Sylvester Stallone',\n",
       " 'Fede Alvarez',\n",
       " 'Scott Derrickson',\n",
       " 'Rich Moore',\n",
       " 'Rupert Sanders',\n",
       " 'Joe Wright',\n",
       " 'Michael Bay',\n",
       " 'Jason Reitman',\n",
       " 'Tom Tykwer',\n",
       " 'Jodie Foster',\n",
       " 'Nick Cassavetes',\n",
       " 'Kevin Lima',\n",
       " 'Nancy Meyers',\n",
       " 'Jonathan Dayton',\n",
       " 'Ben Younger',\n",
       " 'Louis Leterrier',\n",
       " 'Craig Gillespie',\n",
       " 'Joseph Kosinski',\n",
       " 'Francis Lawrence',\n",
       " 'Andrew Jarecki',\n",
       " 'John Stockwell',\n",
       " 'M. Night Shyamalan',\n",
       " 'Jake Kasdan',\n",
       " 'Kirk Jones',\n",
       " 'Bennett Miller',\n",
       " 'Mark Steven Johnson',\n",
       " 'Angelina Jolie',\n",
       " 'Tarsem Singh',\n",
       " 'Danny Boyle',\n",
       " 'Mark Andrews',\n",
       " 'Niels Arden Oplev',\n",
       " 'Anne Fontaine',\n",
       " 'Michaël R. Roskam',\n",
       " 'Andy Fickman',\n",
       " 'Sean Anders',\n",
       " 'Matt Reeves',\n",
       " 'Jeff Wadlow',\n",
       " 'Louis Leterrier',\n",
       " 'Duncan Jones',\n",
       " 'Tom McGrath',\n",
       " 'Ruben Fleischer',\n",
       " 'Jean-François Richet',\n",
       " 'Ken Kwapis',\n",
       " 'Alessandro Carloni',\n",
       " 'Zackary Adler',\n",
       " 'John Butler',\n",
       " 'Debra Granik',\n",
       " 'Seth Gordon',\n",
       " 'Xavier Dolan',\n",
       " 'Guillermo del Toro',\n",
       " 'Richard LaGravenese',\n",
       " 'Maren Ade',\n",
       " 'Peter Jackson',\n",
       " 'Andrew Dominik',\n",
       " 'Joseph Gordon-Levitt',\n",
       " 'James Watkins',\n",
       " 'Joey Curtis',\n",
       " 'Gary Ross',\n",
       " 'Paco Cabezas',\n",
       " 'Ben Stiller',\n",
       " 'Rick Famuyiwa',\n",
       " 'Måns Mårlind',\n",
       " 'Lars von Trier',\n",
       " 'Marcus Nispel',\n",
       " 'Olivier Megaton',\n",
       " 'Len Wiseman',\n",
       " 'Brett Ratner',\n",
       " 'Will Slocombe',\n",
       " 'Courtney Hunt',\n",
       " 'Shawn Levy',\n",
       " 'Edward Zwick',\n",
       " 'Evan Goldberg',\n",
       " 'Bong Joon Ho',\n",
       " 'Michael Goi',\n",
       " 'Andrew Stanton',\n",
       " 'Judd Apatow',\n",
       " 'Duncan Jones',\n",
       " 'John Hillcoat',\n",
       " 'Levan Gabriadze',\n",
       " 'Jon Hurwitz',\n",
       " 'Gabriele Muccino',\n",
       " 'Damián Szifron',\n",
       " 'Frank Coraci',\n",
       " 'François Ozon',\n",
       " 'Henry Joost',\n",
       " 'Clint Eastwood',\n",
       " 'John Wells',\n",
       " 'Jonathan Holbrook',\n",
       " 'Julia Leigh',\n",
       " 'Mark Waters',\n",
       " 'Tim Burton',\n",
       " 'Afonso Poyart',\n",
       " 'James Wan',\n",
       " 'Akiva Schaffer',\n",
       " 'Hope Dickson Leach',\n",
       " 'Michael Mann',\n",
       " 'Richard Linklater',\n",
       " 'Jonathan Liebesman',\n",
       " 'David Cronenberg',\n",
       " 'Simon Stone',\n",
       " 'David Gordon Green',\n",
       " 'Jon Kasdan',\n",
       " 'Ben Affleck',\n",
       " 'Paul Feig',\n",
       " 'Mia Hansen-Løve',\n",
       " 'Joe Wright',\n",
       " 'Alejandro Amenábar',\n",
       " 'Seth MacFarlane',\n",
       " 'Michael Bay',\n",
       " 'Edward Zwick',\n",
       " 'Atom Egoyan',\n",
       " 'Daniel Espinosa',\n",
       " 'Kathryn Bigelow',\n",
       " 'Martin Campbell',\n",
       " 'John Michael McDonagh',\n",
       " 'Frank Darabont',\n",
       " 'Mikael Håfström',\n",
       " 'Christian Ditter',\n",
       " 'Ari Sandel',\n",
       " 'Jee-woon Kim',\n",
       " 'Francis Lawrence',\n",
       " 'Lynne Ramsay',\n",
       " 'Whit Stillman',\n",
       " 'Harald Zwart',\n",
       " 'Gabriele Muccino',\n",
       " 'Tom Hooper',\n",
       " 'Steve McQueen',\n",
       " 'Doug Liman',\n",
       " 'Lee Unkrich',\n",
       " 'Tomas Alfredson',\n",
       " 'Paul W.S. Anderson',\n",
       " 'Gauri Shinde',\n",
       " 'Michael Grandage',\n",
       " 'Paul W.S. Anderson',\n",
       " 'Ang Lee',\n",
       " 'Lasse Hallström',\n",
       " 'Jamie Linden',\n",
       " 'Mike Cahill',\n",
       " 'Len Wiseman',\n",
       " 'Caleb Vetter',\n",
       " 'Michael Haneke',\n",
       " 'Seth MacFarlane',\n",
       " 'Robert Schwentke',\n",
       " 'Baz Luhrmann',\n",
       " 'George Tillman Jr.',\n",
       " 'Marcus Dunstan',\n",
       " 'George Nolfi',\n",
       " 'John Krasinski',\n",
       " 'David Dobkin',\n",
       " 'John Crowley',\n",
       " 'Michael Bay',\n",
       " 'Michael Dudok de Wit',\n",
       " 'Jorge R. Gutiérrez',\n",
       " 'Denis Villeneuve',\n",
       " 'Bobby Farrelly',\n",
       " 'George Miller',\n",
       " 'Doug Ellin',\n",
       " 'Bryan Bertino',\n",
       " 'Darren Aronofsky',\n",
       " 'Nicholas Stoller',\n",
       " 'Lars von Trier',\n",
       " 'Jean-Marc Vallée',\n",
       " 'Dennis Dugan',\n",
       " 'Adam Wingard',\n",
       " 'Harald Zwart',\n",
       " 'Tim Burton',\n",
       " 'Will Gluck',\n",
       " 'Neil Burger',\n",
       " 'Joe Carnahan',\n",
       " 'Adam Wingard',\n",
       " 'Shawn Levy',\n",
       " 'Greg Mottola',\n",
       " 'Simon Aboud',\n",
       " 'Ron Howard',\n",
       " 'Bruce Beresford',\n",
       " 'Martin Scorsese',\n",
       " 'Oz Perkins',\n",
       " 'Ridley Scott',\n",
       " 'Terrence Malick',\n",
       " 'Rob Cohen',\n",
       " 'Ben Falcone',\n",
       " 'Jonathan Jakubowicz',\n",
       " 'Juan José Campanella',\n",
       " 'Ethan Coen',\n",
       " 'Max Joseph',\n",
       " 'Seth MacFarlane',\n",
       " 'Chris Stokes',\n",
       " 'Warren Beatty',\n",
       " 'Mike Flanagan',\n",
       " 'Thor Freudenthal',\n",
       " 'Gregory Hoblit',\n",
       " 'Mike Flanagan',\n",
       " 'Martin McDonagh',\n",
       " 'McG',\n",
       " 'Filip Renc',\n",
       " 'John Hillcoat',\n",
       " 'Ed Gass-Donnelly',\n",
       " 'Jamal Hill',\n",
       " 'Marcus Nispel',\n",
       " 'David O. Russell',\n",
       " 'Kirsten Sheridan',\n",
       " 'Jon Favreau',\n",
       " 'Gavin Hood',\n",
       " 'D.J. Caruso',\n",
       " 'James DeMonaco',\n",
       " 'Rajkumar Hirani',\n",
       " 'Gavin Hood',\n",
       " 'Steven Spielberg',\n",
       " 'Jake Schreier',\n",
       " 'Ben Wheatley',\n",
       " 'Marc Forster',\n",
       " 'Walter Hill',\n",
       " 'Dean DeBlois',\n",
       " 'M. Night Shyamalan',\n",
       " 'Darren Aronofsky',\n",
       " 'John Lasseter',\n",
       " 'Rob Zombie',\n",
       " 'Tyler Shields',\n",
       " 'Hisonni Johnson',\n",
       " 'Matt Brown',\n",
       " 'Jaume Collet-Serra',\n",
       " 'Tarsem Singh',\n",
       " 'Bruce A. Evans',\n",
       " 'Adam Leon',\n",
       " 'Chris Evans',\n",
       " 'Paul Greengrass',\n",
       " 'Jim Sheridan',\n",
       " 'Stewart Hendler',\n",
       " 'Genndy Tartakovsky',\n",
       " 'Peter Berg',\n",
       " 'Jason Moore',\n",
       " 'Luc Besson',\n",
       " 'Kevin Smith',\n",
       " 'Claude Barras',\n",
       " 'Asger Leth',\n",
       " 'Ivan Reitman',\n",
       " 'Werner Herzog',\n",
       " 'Pierre Coffin',\n",
       " 'Scott Frank',\n",
       " 'Edgar Wright',\n",
       " 'Kevin Smith',\n",
       " 'Martin McDonagh',\n",
       " 'Robert Zemeckis',\n",
       " 'Kenneth Branagh',\n",
       " 'Mikael Håfström',\n",
       " 'Rupert Wyatt',\n",
       " 'Mike Newell',\n",
       " 'James Ponsoldt',\n",
       " 'Amma Asante',\n",
       " 'Mario Van Peebles',\n",
       " 'François Simard',\n",
       " 'Andrés Muschietti',\n",
       " 'Jaume Collet-Serra',\n",
       " 'Woody Allen',\n",
       " 'Wes Anderson',\n",
       " 'Spike Lee',\n",
       " 'John Moore',\n",
       " 'Danny Boyle',\n",
       " 'John R. Leonetti',\n",
       " 'John R. Leonetti',\n",
       " 'Saul Dibb',\n",
       " 'Terry Gilliam',\n",
       " 'Stephen Sommers',\n",
       " 'Antonio Campos',\n",
       " 'Dito Montiel',\n",
       " 'Phil Claydon',\n",
       " 'Farren Blackburn',\n",
       " 'Matthias Hoene',\n",
       " 'Robert Rodriguez',\n",
       " 'Jason Friedberg',\n",
       " 'Sylvester Stallone',\n",
       " 'David Bowers',\n",
       " 'Cary Joji Fukunaga',\n",
       " 'Andy Tennant',\n",
       " 'Larry Charles',\n",
       " 'Erik Van Looy',\n",
       " 'Cristian Mungiu',\n",
       " 'Dennis Dugan',\n",
       " 'Gee Malik Linton',\n",
       " 'Aisling Walsh',\n",
       " 'Sean Anders',\n",
       " 'Luca Guadagnino',\n",
       " 'Lars von Trier',\n",
       " 'Ron Clements',\n",
       " 'Tony Scott',\n",
       " 'Robert Zemeckis',\n",
       " 'Tim Johnson',\n",
       " 'Giuseppe Tornatore',\n",
       " 'Nathan Morlando',\n",
       " 'Brian Helgeland',\n",
       " 'Robert Luketic',\n",
       " 'John Carney',\n",
       " 'Scott Cooper',\n",
       " 'Woody Allen',\n",
       " 'Mark Osborne',\n",
       " 'Malcolm D. Lee',\n",
       " 'McG',\n",
       " 'Richard LaGravenese',\n",
       " 'Alexandre Aja',\n",
       " 'Clint Eastwood',\n",
       " 'Allen Coulter',\n",
       " 'Naoko Yamada',\n",
       " 'Miguel Arteta',\n",
       " 'Steven Knight',\n",
       " 'Alexandre Aja',\n",
       " 'Alexandre Aja',\n",
       " 'James Schamus',\n",
       " 'Kyle Patrick Alvarez',\n",
       " 'David Bowers',\n",
       " 'J.J. Abrams',\n",
       " 'Hannes Holm',\n",
       " 'James Wong',\n",
       " 'Dan Bradley',\n",
       " 'Lone Scherfig',\n",
       " 'Greg Berlanti',\n",
       " 'Juan Carlos Fresnadillo',\n",
       " 'Jonathan Levine',\n",
       " 'Woody Allen',\n",
       " 'Jon M. Chu',\n",
       " 'Jonathan Liebesman',\n",
       " 'Hideaki Anno',\n",
       " 'John Lee Hancock',\n",
       " 'Wally Pfister',\n",
       " 'Carlos Saldanha',\n",
       " 'Drake Doremus',\n",
       " 'Alejandro González Iñárritu',\n",
       " 'Terrence Malick',\n",
       " 'Scott Hicks',\n",
       " 'Alexandre Aja',\n",
       " 'Jonathan Levine',\n",
       " 'Femi Oyeniran',\n",
       " 'Judd Apatow',\n",
       " 'Shawn Levy',\n",
       " 'Michael Patrick King',\n",
       " 'Sylvester Stallone',\n",
       " 'Robert Rodriguez',\n",
       " 'Peter Landesman',\n",
       " 'Tarsem Singh',\n",
       " 'Robert Luketic',\n",
       " 'Gary Winick',\n",
       " 'Leslye Headland',\n",
       " 'David R. Ellis',\n",
       " 'Michael Dowse',\n",
       " 'Dean DeBlois',\n",
       " 'José Padilha',\n",
       " 'James Franco',\n",
       " 'Michael Showalter',\n",
       " 'Steven Soderbergh',\n",
       " 'James Gunn',\n",
       " 'Steven Soderbergh',\n",
       " 'Matteo Garrone',\n",
       " 'Oz Perkins',\n",
       " 'Gabor Csupo',\n",
       " 'James Ward Byrkit',\n",
       " 'George Tillman Jr.',\n",
       " 'Hong-jin Na',\n",
       " 'Simon West',\n",
       " 'Gregory Wilson',\n",
       " 'Tom Tykwer',\n",
       " 'Chris Weitz',\n",
       " 'Neil Marshall',\n",
       " 'Christopher Landon',\n",
       " 'Burr Steers',\n",
       " 'John Erick Dowdle',\n",
       " 'Bryan Singer',\n",
       " 'Bill Condon',\n",
       " 'Lee Daniels',\n",
       " 'Gus Van Sant',\n",
       " 'Chris McCoy',\n",
       " 'Paul Thomas Anderson',\n",
       " 'Craig Brewer',\n",
       " 'R.J. Cutler',\n",
       " 'Ido Fluk',\n",
       " 'Christopher Smith',\n",
       " 'Anna Biller',\n",
       " 'Adam McKay',\n",
       " 'Tom Six',\n",
       " 'James Gunn',\n",
       " 'Richie Smyth',\n",
       " 'Jason Reitman',\n",
       " 'Ryûhei Kitamura',\n",
       " 'David Slade',\n",
       " 'Greg Kwedar',\n",
       " 'Mark Mylod',\n",
       " 'David Twohy',\n",
       " 'Christopher Smith',\n",
       " 'Lee Daniels',\n",
       " 'Justin Kelly',\n",
       " 'M. Night Shyamalan',\n",
       " 'Justin Tipping',\n",
       " 'Alfonso Gomez-Rejon',\n",
       " 'Alexander Payne',\n",
       " 'Michael Patrick King',\n",
       " 'Jordan Vogt-Roberts',\n",
       " 'Paul W.S. Anderson',\n",
       " 'Tom Gormican',\n",
       " 'Scott Stewart',\n",
       " 'David Ayer',\n",
       " 'McG',\n",
       " 'Paul McGuigan',\n",
       " 'Danny Boyle',\n",
       " 'Patricia Rozema',\n",
       " 'Justin Chadwick',\n",
       " 'Steven R. Monroe',\n",
       " 'James Lapine',\n",
       " 'David Lynch',\n",
       " 'Jérôme Salle',\n",
       " 'Robert Zemeckis',\n",
       " 'Micheal Bafaro',\n",
       " 'Gore Verbinski',\n",
       " 'John Luessenhop',\n",
       " 'D.J. Caruso',\n",
       " 'Adam Shankman',\n",
       " 'Wes Craven',\n",
       " 'Mira Nair',\n",
       " 'Kirk Jones',\n",
       " 'Gilles Paquet-Brenner',\n",
       " 'Lisa Addario',\n",
       " 'Xavier Dolan',\n",
       " 'Pedro Almodóvar',\n",
       " 'Patricia Riggen',\n",
       " 'Will Gluck',\n",
       " 'Julie Taymor',\n",
       " 'Luke Greenfield',\n",
       " 'Boaz Yakin',\n",
       " 'David Gordon Green',\n",
       " 'Steven Quale',\n",
       " 'Shana Feste',\n",
       " 'Pascal Laugier',\n",
       " 'Ava DuVernay',\n",
       " 'Patrick Tatopoulos',\n",
       " 'Aamir Khan',\n",
       " 'Michael Dowse',\n",
       " 'Paul W.S. Anderson',\n",
       " 'Nima Nourizadeh',\n",
       " 'Billy Ray',\n",
       " 'Eli Roth',\n",
       " 'Jon M. Chu',\n",
       " 'Scot Armstrong',\n",
       " 'Barry Sonnenfeld']"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df[\"Director\"].tolist()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "644"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(set(df[\"Director\"].tolist()))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['James Gunn', 'Ridley Scott', 'M. Night Shyamalan',\n",
       "       'Christophe Lourdelet', 'David Ayer', 'Yimou Zhang',\n",
       "       'Damien Chazelle', 'Sean Foley', 'James Gray', 'Morten Tyldum',\n",
       "       'David Yates', 'Theodore Melfi', 'Gareth Edwards', 'Ron Clements',\n",
       "       'Nacho Vigalondo', 'Chris Renaud', 'Mel Gibson', 'Paul Greengrass',\n",
       "       'Garth Davis', 'Denis Villeneuve', 'Stephen Gaghan',\n",
       "       'Kenneth Lonergan', 'Ben Young', 'Walt Dohrn', 'Roland Emmerich',\n",
       "       'Dominique Abel', 'S.S. Rajamouli', 'Phillip Guzman', 'Jon Lucas',\n",
       "       'Justin Kurzel', 'John Hamburg', 'Tom Ford', 'Bryan Singer',\n",
       "       'Tim Miller', 'Paul W.S. Anderson', 'Anthony Russo',\n",
       "       'Christopher Nolan', 'Scott Derrickson', 'Antoine Fuqua',\n",
       "       'Patrick Read Johnson', 'Greg Tiernan', 'Barry Jenkins',\n",
       "       'Shawn Burkett', 'John Lee Hancock', 'Ricardo de Montreuil',\n",
       "       'Rob Marshall', 'John Madden', 'Scott Hicks', 'Justin Lin',\n",
       "       'Sean Penn', 'J.J. Abrams', 'Anna Foerster', 'Garry Marshall',\n",
       "       'Chad Stahelski', 'Martin Scorsese', 'Fede Alvarez',\n",
       "       'Thea Sharrock', 'Lone Scherfig', 'Clint Eastwood', 'Zack Snyder',\n",
       "       'André Øvredal', 'Tate Taylor', 'Sam Taylor-Johnson',\n",
       "       'Matthew Vaughn', 'Peter Berg', 'George Miller', 'Robin Swicord',\n",
       "       'Terry George', 'Robert Zemeckis', 'J.A. Bayona', 'David Frankel',\n",
       "       'Byron Howard', 'Gore Verbinski', 'Joss Whedon',\n",
       "       'Quentin Tarantino', 'Paul Feig', 'Matt Ross', 'David Fincher',\n",
       "       'James Wan', 'Colin Trevorrow', 'Ben Affleck', 'James Cameron',\n",
       "       \"Gavin O'Connor\", 'Duncan Jones', 'Todd Phillips', 'Shane Black',\n",
       "       'Makoto Shinkai', 'Jeremy Gillespie', 'Olivier Assayas',\n",
       "       'Brian Helgeland', 'Kenneth Branagh', 'Oriol Paulo', 'Guy Ritchie',\n",
       "       'David Mackenzie', 'Taylor Hackford', 'Katie Holmes',\n",
       "       'Alex Garland', 'Greg McLean', 'Steve McQueen',\n",
       "       'Ana Lily Amirpour', 'Josh Gordon', 'Nicolas Winding Refn',\n",
       "       'Nitesh Tiwari', 'Dan Trachtenberg', 'Andrew Stanton',\n",
       "       'Tim Burton', 'Neil Burger', 'Jake Szymanski', 'Todor Chapkanov',\n",
       "       'Jon Favreau', 'Michael Bay', 'Henry Joost', 'Phyllida Lloyd',\n",
       "       'Alejandro González Iñárritu', 'Denzel Washington',\n",
       "       'Jaume Collet-Serra', 'Derek Cianfrance', 'Ethan Coen',\n",
       "       'Baz Luhrmann', 'Martin Koolhoven', 'Thor Freudenthal',\n",
       "       'Adam McKay', 'Lenny Abrahamson', 'Chan-wook Park',\n",
       "       'Kelly Fremon Craig', 'Greg Mottola', 'Ron Howard',\n",
       "       'Steven Spielberg', 'Gary Ross', 'Elizabeth Wood', 'David Lynch',\n",
       "       'Colin Strause', 'Guillermo del Toro', 'Glenn Ficarra',\n",
       "       'Edgar Wright', 'Fabio Guaglione', 'Ben Wheatley', 'Edward Zwick',\n",
       "       'Martin Campbell', 'Catherine Hardwicke', 'Jon M. Chu',\n",
       "       'Simon Curtis', 'Sam Mendes', 'Dan Gilroy', 'Travis Knight',\n",
       "       'Jackson Stewart', 'Spike Jonze', 'Chris Buck', 'Brad Bird',\n",
       "       'Matt Reeves', 'Ben Stiller', 'Peyton Reed', 'Sharon Maguire',\n",
       "       'Robert Eggers', 'Mateo Gil', 'Asghar Farhadi', 'Gaspar Noé',\n",
       "       'Ang Lee', 'Judd Apatow', 'April Mullen', 'Tom McCarthy',\n",
       "       'Luke Scott', 'Joe Johnston', 'Akan Satayev',\n",
       "       'Rawson Marshall Thurber', 'Doug Liman', 'Oliver Stone',\n",
       "       'Robert Schwentke', 'Julia Ducournau', 'Jim Jarmusch',\n",
       "       'Colm McCarthy', 'Brad Peyton', 'Harmony Korine', 'Spike Lee',\n",
       "       'Alan Taylor', 'Alex Proyas', 'Chris Wedge', 'Liam Gavin',\n",
       "       'Ilya Naishuller', 'John Lasseter', 'David Robert Mitchell',\n",
       "       'Andrea Arnold', 'Yorgos Lanthimos', 'Nimród Antal',\n",
       "       'Robert Stromberg', 'Steven Shainberg', 'Andy Goddard',\n",
       "       'Christopher McQuarrie', 'Cedric Nicolas-Troyan',\n",
       "       'Stephen Chbosky', 'Pablo Larraín', 'D.J. Caruso', 'Wes Anderson',\n",
       "       'Andrew Niccol', 'Pete Docter', 'Ash Brannon', 'Chris Columbus',\n",
       "       'Tom Hooper', 'Alfonso Cuarón', 'Mike Mills', 'Olivier Nakache',\n",
       "       'Eleanor Coppola', 'F. Gary Gray', 'Marc Webb', 'Rupert Wyatt',\n",
       "       'David F. Sandberg', 'Joseph Cedar', 'Darren Aronofsky',\n",
       "       'Justin Simien', 'Lars von Trier', 'Dave Green', 'Eli Roth',\n",
       "       'Dan Mazer', 'Tom Tykwer', 'Gavin Hood', 'Jeffrey G. Hunt',\n",
       "       'Peter Jackson', 'Phil Lord', 'John Carney', 'Eric Summer',\n",
       "       'Joseph Kosinski', 'Richard Linklater', 'Louis Leterrier',\n",
       "       'Brett Ratner', 'Lana Wachowski', 'Jared Hess', 'Jalil Lespert',\n",
       "       'Sang-ho Yeon', 'Jason Moore', 'Nicholas Stoller', 'David Leveaux',\n",
       "       'Ross Katz', 'Mike Thurmeier', 'Brad Furman',\n",
       "       'Paul Thomas Anderson', 'Drew Goddard', 'Fred Wolf',\n",
       "       'Jim Field Smith', 'James Bobin', 'Gary Michael Schultz',\n",
       "       'Christian Ditter', 'Abdellatif Kechiche', 'Jennifer Kent',\n",
       "       'Bong Joon Ho', 'J Blakeson', 'Dan Berk', 'Anne Fletcher',\n",
       "       'So Yong Kim', 'Breck Eisner', 'Paul McGuigan',\n",
       "       'Roger Spottiswoode', 'Jeremy Saulnier', 'Michael Mann',\n",
       "       'Jean-Marc Vallée', 'Mike Flanagan', 'David O. Russell',\n",
       "       'Alexi Pappas', 'Josh Boone', 'Frank Coraci', 'Rian Johnson',\n",
       "       'David Lowery', 'Sam Raimi', 'Karyn Kusama', 'Woody Allen',\n",
       "       'William Oldroyd', 'Jocelyn Moorhouse', 'Sergei Bodrov',\n",
       "       'Hugo Gélin', 'James Marsh', 'Evan Goldberg', 'Richard Curtis',\n",
       "       'Jon Watts', 'Ruben Fleischer', 'Danny Boyle', 'Bill Condon',\n",
       "       'Alex Ranarivelo', 'Timur Bekmambetov', 'J.D. Dillard', 'Wes Ball',\n",
       "       'Ariel Vromen', 'Stephen Frears', 'Eran Creevy', 'Scott Cooper',\n",
       "       'Ryan Coogler', 'Dan Kwan', 'Patrick Hughes', 'Jemaine Clement',\n",
       "       'Baltasar Kormákur', 'James Mangold', 'Peter Atencio',\n",
       "       'Pierre Morel', 'Gillies MacKinnon', 'Dennis Dugan',\n",
       "       'Lee Toland Krieger', 'Peter Billingsley', 'Terry Jones',\n",
       "       'Steven Soderbergh', 'Kyle Balda', 'Rolfe Kanefsky',\n",
       "       'Pierre Coffin', 'Michael Hoffman', 'Kathryn Bigelow',\n",
       "       'Nathan Greno', 'Francis Lawrence', 'John Francis Daley',\n",
       "       'Elizabeth Banks', 'Dan Scanlon', 'Paul Verhoeven',\n",
       "       'Dennis Gansel', 'Kevin Smith', 'Mark Williams', 'Joe Wright',\n",
       "       'David Ross', 'Burr Steers', 'Noam Murro', 'Babak Najafi',\n",
       "       'Frank Miller', 'Srdjan Spasojevic', 'James DeMonaco',\n",
       "       'Rajkumar Hirani', 'Marc Forster', 'Corey Asraf', 'Jon S. Baird',\n",
       "       'George Tillman Jr.', 'Jeff Wadlow', 'Jeff Grace', 'John Crowley',\n",
       "       'Henry Selick', 'Michael J. Gallagher', 'Christophe Gans',\n",
       "       'Pete Travis', 'Taika Waititi', 'Don Hall', 'Kimberly Peirce',\n",
       "       'Christian Alvart', 'Thomas Vinterberg', 'Etan Cohen',\n",
       "       'William Brent Bell', 'Mick Jackson', 'Michael Spierig',\n",
       "       'Rob Letterman', 'Phillip Noyce', 'Neill Blomkamp',\n",
       "       'Sofia Coppola', 'Dexter Fletcher',\n",
       "       'Florian Henckel von Donnersmarck', 'Carles Torrens',\n",
       "       'Amber Tamblyn', 'John Hillcoat', 'Paolo Genovese', 'Clay Kaytis',\n",
       "       'Adam Shankman', 'Lasse Hallström', 'Jim Mickle', 'Albert Hughes',\n",
       "       'Ericson Core', 'Jonathan Glazer', 'Barry Sonnenfeld',\n",
       "       'Todd Haynes', 'Daniel Ragussis', 'Paolo Sorrentino',\n",
       "       'Jaco Van Dormael', 'Mark Herman', 'S. Craig Zahler',\n",
       "       'Gregory Jacobs', 'Will Gluck', 'Biyi Bandele', 'Sean Ellis',\n",
       "       'Andrey Kravchuk', 'David Schwimmer', 'George Nolfi',\n",
       "       'Tony Gilroy', 'Simon Verhoeven', 'Tony Scott', 'Luc Besson',\n",
       "       'Terence Davies', 'Scott Waugh', 'Steven Brill',\n",
       "       'Alexandros Avranas', 'Ewan McGregor', 'Roman Polanski',\n",
       "       'Nic Mathieu', 'Richard LaGravenese', 'Mora Stephens',\n",
       "       'Jeff Nichols', 'Mike Birbiglia', 'Philippe Falardeau',\n",
       "       'Ken Loach', 'Josh Trank', 'Stephen Fingleton',\n",
       "       'Florian Gallenberger', 'Rob Cohen', 'Joel Edgerton', 'Gary Shore',\n",
       "       'Mike Judge', 'Sylvester Stallone', 'Rich Moore', 'Rupert Sanders',\n",
       "       'Jason Reitman', 'Jodie Foster', 'Nick Cassavetes', 'Kevin Lima',\n",
       "       'Nancy Meyers', 'Jonathan Dayton', 'Ben Younger',\n",
       "       'Craig Gillespie', 'Andrew Jarecki', 'John Stockwell',\n",
       "       'Jake Kasdan', 'Kirk Jones', 'Bennett Miller',\n",
       "       'Mark Steven Johnson', 'Angelina Jolie', 'Tarsem Singh',\n",
       "       'Mark Andrews', 'Niels Arden Oplev', 'Anne Fontaine',\n",
       "       'Michaël R. Roskam', 'Andy Fickman', 'Sean Anders', 'Tom McGrath',\n",
       "       'Jean-François Richet', 'Ken Kwapis', 'Alessandro Carloni',\n",
       "       'Zackary Adler', 'John Butler', 'Debra Granik', 'Seth Gordon',\n",
       "       'Xavier Dolan', 'Maren Ade', 'Andrew Dominik',\n",
       "       'Joseph Gordon-Levitt', 'James Watkins', 'Joey Curtis',\n",
       "       'Paco Cabezas', 'Rick Famuyiwa', 'Måns Mårlind', 'Marcus Nispel',\n",
       "       'Olivier Megaton', 'Len Wiseman', 'Will Slocombe', 'Courtney Hunt',\n",
       "       'Shawn Levy', 'Michael Goi', 'Levan Gabriadze', 'Jon Hurwitz',\n",
       "       'Gabriele Muccino', 'Damián Szifron', 'François Ozon',\n",
       "       'John Wells', 'Jonathan Holbrook', 'Julia Leigh', 'Mark Waters',\n",
       "       'Afonso Poyart', 'Akiva Schaffer', 'Hope Dickson Leach',\n",
       "       'Jonathan Liebesman', 'David Cronenberg', 'Simon Stone',\n",
       "       'David Gordon Green', 'Jon Kasdan', 'Mia Hansen-Løve',\n",
       "       'Alejandro Amenábar', 'Seth MacFarlane', 'Atom Egoyan',\n",
       "       'Daniel Espinosa', 'John Michael McDonagh', 'Frank Darabont',\n",
       "       'Mikael Håfström', 'Ari Sandel', 'Jee-woon Kim', 'Lynne Ramsay',\n",
       "       'Whit Stillman', 'Harald Zwart', 'Lee Unkrich', 'Tomas Alfredson',\n",
       "       'Gauri Shinde', 'Michael Grandage', 'Jamie Linden', 'Mike Cahill',\n",
       "       'Caleb Vetter', 'Michael Haneke', 'Marcus Dunstan',\n",
       "       'John Krasinski', 'David Dobkin', 'Michael Dudok de Wit',\n",
       "       'Jorge R. Gutiérrez', 'Bobby Farrelly', 'Doug Ellin',\n",
       "       'Bryan Bertino', 'Adam Wingard', 'Joe Carnahan', 'Simon Aboud',\n",
       "       'Bruce Beresford', 'Oz Perkins', 'Terrence Malick', 'Ben Falcone',\n",
       "       'Jonathan Jakubowicz', 'Juan José Campanella', 'Max Joseph',\n",
       "       'Chris Stokes', 'Warren Beatty', 'Gregory Hoblit',\n",
       "       'Martin McDonagh', 'McG', 'Filip Renc', 'Ed Gass-Donnelly',\n",
       "       'Jamal Hill', 'Kirsten Sheridan', 'Jake Schreier', 'Walter Hill',\n",
       "       'Dean DeBlois', 'Rob Zombie', 'Tyler Shields', 'Hisonni Johnson',\n",
       "       'Matt Brown', 'Bruce A. Evans', 'Adam Leon', 'Chris Evans',\n",
       "       'Jim Sheridan', 'Stewart Hendler', 'Genndy Tartakovsky',\n",
       "       'Claude Barras', 'Asger Leth', 'Ivan Reitman', 'Werner Herzog',\n",
       "       'Scott Frank', 'Mike Newell', 'James Ponsoldt', 'Amma Asante',\n",
       "       'Mario Van Peebles', 'François Simard', 'Andrés Muschietti',\n",
       "       'John Moore', 'John R. Leonetti', 'Saul Dibb', 'Terry Gilliam',\n",
       "       'Stephen Sommers', 'Antonio Campos', 'Dito Montiel',\n",
       "       'Phil Claydon', 'Farren Blackburn', 'Matthias Hoene',\n",
       "       'Robert Rodriguez', 'Jason Friedberg', 'David Bowers',\n",
       "       'Cary Joji Fukunaga', 'Andy Tennant', 'Larry Charles',\n",
       "       'Erik Van Looy', 'Cristian Mungiu', 'Gee Malik Linton',\n",
       "       'Aisling Walsh', 'Luca Guadagnino', 'Tim Johnson',\n",
       "       'Giuseppe Tornatore', 'Nathan Morlando', 'Robert Luketic',\n",
       "       'Mark Osborne', 'Malcolm D. Lee', 'Alexandre Aja', 'Allen Coulter',\n",
       "       'Naoko Yamada', 'Miguel Arteta', 'Steven Knight', 'James Schamus',\n",
       "       'Kyle Patrick Alvarez', 'Hannes Holm', 'James Wong', 'Dan Bradley',\n",
       "       'Greg Berlanti', 'Juan Carlos Fresnadillo', 'Jonathan Levine',\n",
       "       'Hideaki Anno', 'Wally Pfister', 'Carlos Saldanha',\n",
       "       'Drake Doremus', 'Femi Oyeniran', 'Michael Patrick King',\n",
       "       'Peter Landesman', 'Gary Winick', 'Leslye Headland',\n",
       "       'David R. Ellis', 'Michael Dowse', 'José Padilha', 'James Franco',\n",
       "       'Michael Showalter', 'Matteo Garrone', 'Gabor Csupo',\n",
       "       'James Ward Byrkit', 'Hong-jin Na', 'Simon West', 'Gregory Wilson',\n",
       "       'Chris Weitz', 'Neil Marshall', 'Christopher Landon',\n",
       "       'John Erick Dowdle', 'Lee Daniels', 'Gus Van Sant', 'Chris McCoy',\n",
       "       'Craig Brewer', 'R.J. Cutler', 'Ido Fluk', 'Christopher Smith',\n",
       "       'Anna Biller', 'Tom Six', 'Richie Smyth', 'Ryûhei Kitamura',\n",
       "       'David Slade', 'Greg Kwedar', 'Mark Mylod', 'David Twohy',\n",
       "       'Justin Kelly', 'Justin Tipping', 'Alfonso Gomez-Rejon',\n",
       "       'Alexander Payne', 'Jordan Vogt-Roberts', 'Tom Gormican',\n",
       "       'Scott Stewart', 'Patricia Rozema', 'Justin Chadwick',\n",
       "       'Steven R. Monroe', 'James Lapine', 'Jérôme Salle',\n",
       "       'Micheal Bafaro', 'John Luessenhop', 'Wes Craven', 'Mira Nair',\n",
       "       'Gilles Paquet-Brenner', 'Lisa Addario', 'Pedro Almodóvar',\n",
       "       'Patricia Riggen', 'Julie Taymor', 'Luke Greenfield', 'Boaz Yakin',\n",
       "       'Steven Quale', 'Shana Feste', 'Pascal Laugier', 'Ava DuVernay',\n",
       "       'Patrick Tatopoulos', 'Aamir Khan', 'Nima Nourizadeh', 'Billy Ray',\n",
       "       'Scot Armstrong'], dtype=object)"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 另一种方法\n",
    "df[\"Director\"].unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "644"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(df[\"Director\"].unique())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 获取演员的人数\n",
    "temp_actors_list = df[\"Actors\"].str.split(\",\").tolist()\n",
    "# 两层for-in循环\n",
    "actors_list = [i for j in temp_actors_list for i in j]\n",
    "actors_num = len(set(actors_list))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "2394"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "actors_num"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 电影分布直方图\n",
    "\n",
    "1. 对于这一组电影数据，如果我们想rating，runtime的分布情况，应该如何呈现数据？\n",
    "2. 对于这一组电影数据，如果我们希望统计电影分类(genre)的情况，应该如何处理数据？\n",
    "\n",
    "##### 1.\n",
    "\n",
    "###### runtime"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Rank</th>\n",
       "      <th>Year</th>\n",
       "      <th>Runtime (Minutes)</th>\n",
       "      <th>Rating</th>\n",
       "      <th>Votes</th>\n",
       "      <th>Revenue (Millions)</th>\n",
       "      <th>Metascore</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>count</th>\n",
       "      <td>1000.000000</td>\n",
       "      <td>1000.000000</td>\n",
       "      <td>1000.000000</td>\n",
       "      <td>1000.000000</td>\n",
       "      <td>1.000000e+03</td>\n",
       "      <td>872.000000</td>\n",
       "      <td>936.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>mean</th>\n",
       "      <td>500.500000</td>\n",
       "      <td>2012.783000</td>\n",
       "      <td>113.172000</td>\n",
       "      <td>6.723200</td>\n",
       "      <td>1.698083e+05</td>\n",
       "      <td>82.956376</td>\n",
       "      <td>58.985043</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>std</th>\n",
       "      <td>288.819436</td>\n",
       "      <td>3.205962</td>\n",
       "      <td>18.810908</td>\n",
       "      <td>0.945429</td>\n",
       "      <td>1.887626e+05</td>\n",
       "      <td>103.253540</td>\n",
       "      <td>17.194757</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>min</th>\n",
       "      <td>1.000000</td>\n",
       "      <td>2006.000000</td>\n",
       "      <td>66.000000</td>\n",
       "      <td>1.900000</td>\n",
       "      <td>6.100000e+01</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>11.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25%</th>\n",
       "      <td>250.750000</td>\n",
       "      <td>2010.000000</td>\n",
       "      <td>100.000000</td>\n",
       "      <td>6.200000</td>\n",
       "      <td>3.630900e+04</td>\n",
       "      <td>13.270000</td>\n",
       "      <td>47.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>50%</th>\n",
       "      <td>500.500000</td>\n",
       "      <td>2014.000000</td>\n",
       "      <td>111.000000</td>\n",
       "      <td>6.800000</td>\n",
       "      <td>1.107990e+05</td>\n",
       "      <td>47.985000</td>\n",
       "      <td>59.500000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>75%</th>\n",
       "      <td>750.250000</td>\n",
       "      <td>2016.000000</td>\n",
       "      <td>123.000000</td>\n",
       "      <td>7.400000</td>\n",
       "      <td>2.399098e+05</td>\n",
       "      <td>113.715000</td>\n",
       "      <td>72.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>max</th>\n",
       "      <td>1000.000000</td>\n",
       "      <td>2016.000000</td>\n",
       "      <td>191.000000</td>\n",
       "      <td>9.000000</td>\n",
       "      <td>1.791916e+06</td>\n",
       "      <td>936.630000</td>\n",
       "      <td>100.000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "              Rank         Year  Runtime (Minutes)       Rating         Votes  \\\n",
       "count  1000.000000  1000.000000        1000.000000  1000.000000  1.000000e+03   \n",
       "mean    500.500000  2012.783000         113.172000     6.723200  1.698083e+05   \n",
       "std     288.819436     3.205962          18.810908     0.945429  1.887626e+05   \n",
       "min       1.000000  2006.000000          66.000000     1.900000  6.100000e+01   \n",
       "25%     250.750000  2010.000000         100.000000     6.200000  3.630900e+04   \n",
       "50%     500.500000  2014.000000         111.000000     6.800000  1.107990e+05   \n",
       "75%     750.250000  2016.000000         123.000000     7.400000  2.399098e+05   \n",
       "max    1000.000000  2016.000000         191.000000     9.000000  1.791916e+06   \n",
       "\n",
       "       Revenue (Millions)   Metascore  \n",
       "count          872.000000  936.000000  \n",
       "mean            82.956376   58.985043  \n",
       "std            103.253540   17.194757  \n",
       "min              0.000000   11.000000  \n",
       "25%             13.270000   47.000000  \n",
       "50%             47.985000   59.500000  \n",
       "75%            113.715000   72.000000  \n",
       "max            936.630000  100.000000  "
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.describe()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "from matplotlib import pyplot as plt\n",
    "\n",
    "plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签\n",
    "plt.rcParams['axes.unicode_minus']=False #用来正常显示负号\n",
    "\n",
    "runtime_data = df[\"Runtime (Minutes)\"].values"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAABQAAAAICCAYAAACQi2ByAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Il7ecAAAACXBIWXMAAAxOAAAMTgF/d4wjAAAfM0lEQVR4nO3df4zkd33f8dcbzjhg7rgS3RWHK6oowgbiChKbJGBSu1YCRk2o0gBVWxOUuNCmaVpd1WApjUANbqChRwgmiIhrwfxMopbyo0YuEXZCMb1rIFDA5ZKUJs4R6NEfdw4uLsH36R8zR9ebPbO7M1/P3XsfDwlpZ3a8+dxLm53Z587u1BgjAAAAAEBPD1n1AQAAAACA6QiAAAAAANCYAAgAAAAAjQmAAAAAANCYAAgAAAAAjQmAAAAAANDYrlUf4MILLxz79u1b9TEmdfr06TzkIVrrstl1Oradjm2nYdfp2HY6tp2Obadh1+nYdjq2nYZdp2Pb6XTf9gtf+MLXxhgXn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LEtsvwiMx+/fcR8x+8fFdm35fZdgnGGF/J7HHB/0jyL+dX77htvQjI8v2rzJ6h9htJ9mf21OgvJfk38z+e/JUkz1/h+c5n1yb58JrLfy92XYafTfLmqnp9ki8m+btJHhrbLqyqXpDki2OMD82v8jm7RGOMU1WVqrp4jPHFJJcn+bdJTmaH3Zk/iP7UfdwY454Vn+l89CuZBexfrdkLAP98bLuQMcZ9VfXTST5YVV9Ncvv8hYL+Y+y6kDHGryf59jOXq+r3xxjPq9kL2th2AWOMz82j6ucye9bqG8YYR6rqU7HtojZ6zPXV2HVZ/kpm30Oc4T5sQWOMT1fVBzL72+EXJvlAZn/7+qGx7cLmf3LhUJIfWfNs9h33eVv3fyY/AJzbquotSd4y/+b+b2T2Yh9HklydWQS8L8kbkzw+szvzV40x3rqi4wIAAKycAAjAea2qnpzZqy5/cIxx96rPAwAAcK4RAAEAAACgMS8CAgAAAACNCYAAAAAA0JgACAAAAACNCYAAAAAA0JgACAAAAACN/T9IU6p7KOwpDwAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 1600x640 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "bin_width = 10\n",
    "\n",
    "plt.figure(figsize=(20,8), dpi=80)\n",
    "plt.hist(runtime_data, bins=range(runtime_data.min(),runtime_data.max()+bin_width, bin_width))\n",
    "plt.xticks(range(runtime_data.min(),runtime_data.max()+bin_width, bin_width))\n",
    "\n",
    "plt.grid(alpha=0.3)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "###### rating"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "rating_data = df[\"Rating\"].values\n",
    "\n",
    "bin_width = 0.5\n",
    "\n",
    "i = rating_data.min()\n",
    "bin_list = []\n",
    "while i<= (rating_data.max()+bin_width):\n",
    "    bin_list.append(i)\n",
    "    i += bin_width"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[1.9,\n",
       " 2.4,\n",
       " 2.9,\n",
       " 3.4,\n",
       " 3.9,\n",
       " 4.4,\n",
       " 4.9,\n",
       " 5.4,\n",
       " 5.9,\n",
       " 6.4,\n",
       " 6.9,\n",
       " 7.4,\n",
       " 7.9,\n",
       " 8.4,\n",
       " 8.9,\n",
       " 9.4]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "bin_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAABQAAAAICCAYAAACQi2ByAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Il7ecAAAACXBIWXMAAAxOAAAMTgF/d4wjAAAjY0lEQVR4nO3dfYzl51ke4PtJ1k7KxuNpqh3iMkVVFNhYNFU+bERDAnYDSYwIERVgVe2C21gJ0NZRpyq4gOWosqEUa8NHQkrEqiYQ4hCViHw4GGhs1UnoOolxmtjNBjcFdwNo/Ed3A1tMgH37x5zFw3p3/Z45Z3123nNd0srzO+c3x8/cemZ29j5f1VoLAAAAADCmpy16AAAAAADg/FEAAgAAAMDAFIAAAAAAMDAFIAAAAAAMTAEIAAAAAANTAAIAAADAwPYseoBnPOMZbd++fYse47w6efJknvY0XWsPWfWTVT9Z9ZNVP1lNR179ZNVPVv1k1U9W/WTVT1bTkVc/WfUbPasvfOELX2qtPeNs1y+8ANy3b1+OHj266DHOq83NzaytrS16jF1BVv1k1U9W/WTVT1bTkVc/WfWTVT9Z9ZNVP1n1k9V05NVPVv1Gz6qqHj3X9eNWnwAAAACAAhAAAAAARqYABAAAAICBKQABAAAAYGAKQAAAAAAYmAIQAAAAAAamAAQAAACAgS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kjwvyee2n2SvknRmZa+e4Iac42maduuvOWdWdivJ1tMz39Ra+1RVfVmS/56tl6r5a+xVks6s7FV/Bsu6VwrAp9jkm/a2JN/fWvuzRc/zVKuqpye5I8kHW2vvOcep355ktaruSfJ3kzxWVcdba+89/1NeGKbIyl5V/Yskz2mt3ZTk2Un+71lOtVf9WS39XqV/X5Z+rzJFBvYqSXJ7Vf3n1tpdSa7N2V9CxG71Z2W3tp4Stj/5q2cP/J0kXzjDefaqPyt7NTHJ6bmttd85x2l2K91Z2a1kb5IXZ+uR3t94jvPsVX9W9irdGSzlXlVrbdEzDKOqbk9ye2vtnqq6MVsvWv3rp53zXUm+tbX23YuYcdGq6vVJfjpb91okyaNJPpkzZLXtc96U5Pdaa7c/FTNeKKbJyl7Vl2Xr4d1fnuTPsvXw+NfEXj3BNFkt+15td2pfsvV6nPbqHJ4sK3uVVNVXZesOnouTHE3yvUn+cezWE0yT1bLvVlU9M1uvY/TcJGtJ/kOSy2KvnmCarJZ9r06pqu9O8pLW2hsnx2f8t86289+UJdytpD+rZd+tqnphkp9P8vwkf5jk+5JcEXv1BNNktex7lTwxAz+vHqcABAAAAICBeRMQAAAAABiYAhAAAAAABqYABAAAAICBKQABAAAAYGAKQAAAAAAYmAIQAAAAAAamAAQAAACAgf1/pJJKrWzKFaYAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 1600x640 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "plt.figure(figsize=(20,8), dpi=80)\n",
    "\n",
    "plt.hist(rating_data, bins=bin_list)\n",
    "plt.xticks(bin_list)\n",
    "\n",
    "plt.grid(alpha=0.3)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "###### 设置不等宽的组距\n",
    "\n",
    "注意：hist方法中取到的是一个左闭右开的区间"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[1.9, 3.5, 4.0, 4.5, 5.0, 5.5, 6.0, 6.5, 7.0, 7.5, 8.0, 8.5, 9.0, 9.5]\n"
     ]
    }
   ],
   "source": [
    "num_bin_list = [1.9,3.5]\n",
    "i=num_bin_list[1]\n",
    "while i <= rating_data.max():\n",
    "    i += 0.5\n",
    "    num_bin_list.append(i)\n",
    "print(num_bin_list)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAABQAAAAICCAYAAACQi2ByAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Il7ecAAAACXBIWXMAAAxOAAAMTgF/d4wjAAAeHklEQVR4nO3df6zleX3X8dcbB6jd7uyEOFM2HfsHRaYNrgG621hYkM3W0jXVpKaWGB0g6aZUsTSOUVYrQiyLRckidSst6aR0Cy3aKBGQH5KwKLB1RouLLdtOJUTXWWlm/3AG2WTFMh//uOe2t3fnzv3cHzNn5n0ej4RwzznfPfu573zO2TPPOed7aowRAAAAAKCnpy17AQAAAADAlSMAAgAAAEBjAiAAAAAANCYAAgAAAEBjAiAAAAAANCYAAgAAAEBjB5a9gGc+85nj8OHDy17GFXXx4sU87WlaK1wvPGbnmNMcc5pjTvPMao45zTGnOeY0x5zmmNM8s5pjTnO6z+mxxx772hjjmVvdvvQAePjw4Zw9e3bZy7iizp07lyNHjix7GcAkj9k55jTHnOaY0zyzmmNOc8xpjjnNMac55jTPrOaY05zuc6qqxy93e9/0CQAAAAAIgAAAAADQmQAIAAAAAI0JgAAAAADQmAAIAAAAAI0JgAAAAADQmAAIAAAAAI0JgAAAAADQmAAIAAAAAI0JgAAAAADQmAAIAAAAAI0JgAAAAADQmAAIAAAAAI0JgAAAAADQmAAIAAAAAI0JgAAAAADQmAAIAAAAAI0JgAA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/sFAAAAAPbHngIgAABX1/GTp3zL5oRjNy17BQAA1w6vHgEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgsQPLXgAAAACsiuMnT+XMBe/FmXH6xG3LXgK04VkHAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABoTAAEAAACgMQEQAAAAABo7sJd/uKq+mOTs4uJnkjyQ5L1Jfi/JL44xfm5vywMAAAAA9mLXAbCqnpvk4THGD2647lSSe5I8mOQTVfXRMcaje18mAAA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ZdX31Maw9W1ZC1svWPyhZ6NV31PfleTnxhiPJnm0qp5M8twkv7PpuFXfT0mmwtaq76d1r88W72pbWPX99OmsPUetR61/sMVx9tPau9nePMb4fFV9Y5L/mLXT9Wy26ntqPWz9bJI3ZOuwtdJ7agfNZSX3k3cAXmVjjM9n7S25f32M8X+XvR5YRVX1uqr6ycXFZyX531sc+p7FuSOStXORbPcx/1Y2hq1tDv1Kko0vLg5euVVdk34gyUur6lNJXpPknqr6gUsct9L7KWsvtL64+PlyL7RWfT8l83tl1ffU74etMcaDSdbD1marvqceSXIsSarqcJI/nuSxSxy36vtp3etz+Xe9r/p+Wt9Hzxlj/JfLHLbq+2k9av1Ukr+a5Je3OG7l91PWfv8XLX6+1F8MrlvpPTXGuD/J27J2PrvnZYuPAMeemm0uK7mfBMArpKruWZzEdPP1P5Tky2OMTyxhWcCaX0jy/Kr6bJK3JnndFo/ZNyZ5a1X9RtYiz1+7yutcttmw9VAWJ9ddnFdxlU40nDHG948xbl+cN+o9SX4qax/7sZ/+sNkXWiu9nxaeslc8R13SbNha9T31C0m+uar+fZL/kLWPtv6Y/fRUk2Fr1fdTsvblAp9cv+D56ZJmo5b9lPxk1l6LfzVrX8p3wp66tMmwtfJ7anNzsZ/+QI0xlr0GAK5xVfXmrJ1v5NlZ+yKHj2247RuSfCZrH9l4aZKfGWO8ewnL5BpWVX8iyfuTPCNr3wT8o0n+cuwndmmxV96V5DlJjmQtvt8ce4pdqqpXJfnOMcaPLy7fE/uJXaiqFyT5+STfnuTLWYsLt8Z+Yg8WYev7xxivWlz2HMWOCIAA7NnixcZdSR4bY5xe9nq4vtlP7Dd7iv1kP7Gf7Cf2mz3FVgRAAAAAAGjMOQABAAAAoDEBEAAAAAAaEwABAAAAoDEBEAAAAAAaEwABAAAAoLH/D9FUopr24mN9AAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 1600x640 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "plt.figure(figsize=(20,8), dpi=80)\n",
    "plt.hist(rating_data, bins=num_bin_list)\n",
    "plt.xticks(num_bin_list)\n",
    "plt.grid(alpha=0.3)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---\n",
    "\n",
    "##### 2.\n",
    "\n",
    "思路: 重新构造一个全为0的数组，列名为分类，如果某一条数据中分类出现过，就让0变为1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Rank</th>\n",
       "      <th>Title</th>\n",
       "      <th>Genre</th>\n",
       "      <th>Description</th>\n",
       "      <th>Director</th>\n",
       "      <th>Actors</th>\n",
       "      <th>Year</th>\n",
       "      <th>Runtime (Minutes)</th>\n",
       "      <th>Rating</th>\n",
       "      <th>Votes</th>\n",
       "      <th>Revenue (Millions)</th>\n",
       "      <th>Metascore</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>Guardians of the Galaxy</td>\n",
       "      <td>Action,Adventure,Sci-Fi</td>\n",
       "      <td>A group of intergalactic criminals are forced ...</td>\n",
       "      <td>James Gunn</td>\n",
       "      <td>Chris Pratt, Vin Diesel, Bradley Cooper, Zoe S...</td>\n",
       "      <td>2014</td>\n",
       "      <td>121</td>\n",
       "      <td>8.1</td>\n",
       "      <td>757074</td>\n",
       "      <td>333.13</td>\n",
       "      <td>76.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>Prometheus</td>\n",
       "      <td>Adventure,Mystery,Sci-Fi</td>\n",
       "      <td>Following clues to the origin of mankind, a te...</td>\n",
       "      <td>Ridley Scott</td>\n",
       "      <td>Noomi Rapace, Logan Marshall-Green, Michael Fa...</td>\n",
       "      <td>2012</td>\n",
       "      <td>124</td>\n",
       "      <td>7.0</td>\n",
       "      <td>485820</td>\n",
       "      <td>126.46</td>\n",
       "      <td>65.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>Split</td>\n",
       "      <td>Horror,Thriller</td>\n",
       "      <td>Three girls are kidnapped by a man with a diag...</td>\n",
       "      <td>M. Night Shyamalan</td>\n",
       "      <td>James McAvoy, Anya Taylor-Joy, Haley Lu Richar...</td>\n",
       "      <td>2016</td>\n",
       "      <td>117</td>\n",
       "      <td>7.3</td>\n",
       "      <td>157606</td>\n",
       "      <td>138.12</td>\n",
       "      <td>62.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>Sing</td>\n",
       "      <td>Animation,Comedy,Family</td>\n",
       "      <td>In a city of humanoid animals, a hustling thea...</td>\n",
       "      <td>Christophe Lourdelet</td>\n",
       "      <td>Matthew McConaughey,Reese Witherspoon, Seth Ma...</td>\n",
       "      <td>2016</td>\n",
       "      <td>108</td>\n",
       "      <td>7.2</td>\n",
       "      <td>60545</td>\n",
       "      <td>270.32</td>\n",
       "      <td>59.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>Suicide Squad</td>\n",
       "      <td>Action,Adventure,Fantasy</td>\n",
       "      <td>A secret government agency recruits some of th...</td>\n",
       "      <td>David Ayer</td>\n",
       "      <td>Will Smith, Jared Leto, Margot Robbie, Viola D...</td>\n",
       "      <td>2016</td>\n",
       "      <td>123</td>\n",
       "      <td>6.2</td>\n",
       "      <td>393727</td>\n",
       "      <td>325.02</td>\n",
       "      <td>40.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   Rank                    Title                     Genre  \\\n",
       "0     1  Guardians of the Galaxy   Action,Adventure,Sci-Fi   \n",
       "1     2               Prometheus  Adventure,Mystery,Sci-Fi   \n",
       "2     3                    Split           Horror,Thriller   \n",
       "3     4                     Sing   Animation,Comedy,Family   \n",
       "4     5            Suicide Squad  Action,Adventure,Fantasy   \n",
       "\n",
       "                                         Description              Director  \\\n",
       "0  A group of intergalactic criminals are forced ...            James Gunn   \n",
       "1  Following clues to the origin of mankind, a te...          Ridley Scott   \n",
       "2  Three girls are kidnapped by a man with a diag...    M. Night Shyamalan   \n",
       "3  In a city of humanoid animals, a hustling thea...  Christophe Lourdelet   \n",
       "4  A secret government agency recruits some of th...            David Ayer   \n",
       "\n",
       "                                              Actors  Year  Runtime (Minutes)  \\\n",
       "0  Chris Pratt, Vin Diesel, Bradley Cooper, Zoe S...  2014                121   \n",
       "1  Noomi Rapace, Logan Marshall-Green, Michael Fa...  2012                124   \n",
       "2  James McAvoy, Anya Taylor-Joy, Haley Lu Richar...  2016                117   \n",
       "3  Matthew McConaughey,Reese Witherspoon, Seth Ma...  2016                108   \n",
       "4  Will Smith, Jared Leto, Margot Robbie, Viola D...  2016                123   \n",
       "\n",
       "   Rating   Votes  Revenue (Millions)  Metascore  \n",
       "0     8.1  757074              333.13       76.0  \n",
       "1     7.0  485820              126.46       65.0  \n",
       "2     7.3  157606              138.12       62.0  \n",
       "3     7.2   60545              270.32       59.0  \n",
       "4     6.2  393727              325.02       40.0  "
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0     Action,Adventure,Sci-Fi\n",
       "1    Adventure,Mystery,Sci-Fi\n",
       "2             Horror,Thriller\n",
       "3     Animation,Comedy,Family\n",
       "4    Action,Adventure,Fantasy\n",
       "Name: Genre, dtype: object"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df[\"Genre\"].head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Adventure', 'Mystery', 'Sci-Fi'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Animation', 'Comedy', 'Family'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Comedy', 'Drama', 'Music'],\n",
       " ['Comedy'],\n",
       " ['Action', 'Adventure', 'Biography'],\n",
       " ['Adventure', 'Drama', 'Romance'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Comedy', 'Drama'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Action', 'Thriller'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Drama', 'Mystery', 'Sci-Fi'],\n",
       " ['Adventure', 'Drama', 'Thriller'],\n",
       " ['Drama'],\n",
       " ['Crime', 'Drama', 'Horror'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Comedy'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Comedy'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Comedy'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Horror', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Adventure', 'Drama', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Adventure', 'Western'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Drama'],\n",
       " ['Horror'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Drama'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Adventure', 'Drama', 'Fantasy'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Drama'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Adventure', 'Drama', 'History'],\n",
       " ['Crime', 'Horror', 'Thriller'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Horror', 'Mystery', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Drama', 'Romance', 'Thriller'],\n",
       " ['Drama', 'Mystery', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Drama', 'History', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Drama'],\n",
       " ['Action', 'Drama', 'Thriller'],\n",
       " ['Drama', 'History'],\n",
       " ['Action', 'Drama', 'Romance'],\n",
       " ['Drama', 'Fantasy'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Sci-Fi'],\n",
       " ['Adventure', 'Drama', 'War'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Comedy', 'Fantasy'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Biography', 'Comedy', 'Crime'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Crime', 'Drama'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Drama'],\n",
       " ['Comedy', 'Crime', 'Drama'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Animation', 'Drama', 'Fantasy'],\n",
       " ['Horror', 'Mystery', 'Sci-Fi'],\n",
       " ['Drama', 'Mystery', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Biography', 'Crime', 'Drama'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Adventure', 'Drama', 'Sci-Fi'],\n",
       " ['Crime', 'Mystery', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Comedy'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Drama'],\n",
       " ['Drama', 'Mystery', 'Sci-Fi'],\n",
       " ['Action', 'Horror', 'Thriller'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Romance', 'Sci-Fi'],\n",
       " ['Action', 'Fantasy', 'War'],\n",
       " ['Adventure', 'Drama', 'Fantasy'],\n",
       " ['Comedy'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Action', 'Biography', 'Drama'],\n",
       " ['Drama', 'Horror', 'Mystery'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Adventure', 'Drama', 'Family'],\n",
       " ['Adventure', 'Mystery', 'Sci-Fi'],\n",
       " ['Adventure', 'Comedy', 'Romance'],\n",
       " ['Action'],\n",
       " ['Action', 'Thriller'],\n",
       " ['Adventure', 'Drama', 'Family'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Adventure', 'Crime', 'Mystery'],\n",
       " ['Comedy', 'Family', 'Musical'],\n",
       " ['Adventure', 'Drama', 'Thriller'],\n",
       " ['Drama'],\n",
       " ['Adventure', 'Comedy', 'Drama'],\n",
       " ['Drama', 'Horror', 'Thriller'],\n",
       " ['Drama', 'Music'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Mystery', 'Thriller'],\n",
       " ['Mystery', 'Thriller', 'Western'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Comedy', 'Family'],\n",
       " ['Biography', 'Comedy', 'Drama'],\n",
       " ['Drama'],\n",
       " ['Drama', 'Western'],\n",
       " ['Drama', 'Mystery', 'Romance'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Action', 'Drama', 'Mystery'],\n",
       " ['Comedy'],\n",
       " ['Action', 'Adventure', 'Crime'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Adventure', 'Sci-Fi', 'Thriller'],\n",
       " ['Drama'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Drama', 'Horror', 'Mystery'],\n",
       " ['Action', 'Horror', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Action', 'Comedy', 'Fantasy'],\n",
       " ['Action', 'Comedy', 'Mystery'],\n",
       " ['Thriller', 'War'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Crime'],\n",
       " ['Action', 'Adventure', 'Thriller'],\n",
       " ['Drama', 'Fantasy', 'Romance'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Action', 'Drama', 'History'],\n",
       " ['Action', 'Adventure', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Animation', 'Adventure', 'Family'],\n",
       " ['Adventure', 'Horror'],\n",
       " ['Drama', 'Romance', 'Sci-Fi'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Adventure', 'Family'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Action', 'Comedy'],\n",
       " ['Horror', 'Mystery', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Horror', 'Mystery'],\n",
       " ['Drama', 'Family', 'Fantasy'],\n",
       " ['Sci-Fi'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Drama', 'War'],\n",
       " ['Drama', 'Fantasy', 'Horror'],\n",
       " ['Crime', 'Drama'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Drama'],\n",
       " ['Crime', 'Drama', 'History'],\n",
       " ['Horror', 'Sci-Fi', 'Thriller'],\n",
       " ['Action', 'Drama', 'Sport'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Adventure', 'Biography', 'Drama'],\n",
       " ['Biography', 'Drama', 'Thriller'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Drama', 'Fantasy', 'Horror'],\n",
       " ['Biography', 'Drama', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Mystery'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Drama', 'Horror'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Drama', 'Horror', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Drama'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Drama', 'Mystery'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Drama', 'Horror'],\n",
       " ['Action', 'Comedy'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Horror', 'Mystery'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Comedy', 'Crime'],\n",
       " ['Drama'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Family'],\n",
       " ['Horror', 'Sci-Fi', 'Thriller'],\n",
       " ['Drama', 'Fantasy', 'War'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Action', 'Adventure', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Drama', 'Horror', 'Thriller'],\n",
       " ['Adventure', 'Comedy', 'Drama'],\n",
       " ['Action', 'Adventure', 'Romance'],\n",
       " ['Action', 'Drama', 'War'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Drama', 'Musical', 'Romance'],\n",
       " ['Drama', 'Sci-Fi', 'Thriller'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Biography', 'Comedy', 'Drama'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Horror', 'Mystery', 'Thriller'],\n",
       " ['Comedy'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Drama', 'Sci-Fi'],\n",
       " ['Horror'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Drama'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Drama', 'Horror', 'Thriller'],\n",
       " ['Comedy'],\n",
       " ['Drama', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Horror'],\n",
       " ['Action', 'Adventure', 'Thriller'],\n",
       " ['Adventure', 'Fantasy'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Comedy', 'Drama', 'Music'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Adventure', 'Mystery'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Crime', 'Drama', 'History'],\n",
       " ['Comedy'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Crime', 'Mystery', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Crime'],\n",
       " ['Thriller'],\n",
       " ['Biography', 'Drama', 'Romance'],\n",
       " ['Action', 'Adventure'],\n",
       " ['Action', 'Fantasy'],\n",
       " ['Action', 'Comedy'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Thriller'],\n",
       " ['Action', 'Drama', 'Horror'],\n",
       " ['Comedy', 'Music', 'Romance'],\n",
       " ['Comedy'],\n",
       " ['Drama'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Biography', 'Crime', 'Drama'],\n",
       " ['Drama', 'History'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Action', 'Biography', 'Drama'],\n",
       " ['Horror'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Comedy', 'Crime', 'Drama'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Biography', 'Drama', 'Sport'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Drama', 'Horror'],\n",
       " ['Adventure', 'Fantasy'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Action', 'Drama', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Horror'],\n",
       " ['Comedy', 'Horror', 'Thriller'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Music'],\n",
       " ['Drama'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Action', 'Sci-Fi', 'Thriller'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Drama', 'Horror', 'Sci-Fi'],\n",
       " ['Biography', 'Comedy', 'Drama'],\n",
       " ['Crime', 'Horror', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Biography', 'Drama'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Action', 'Biography', 'Drama'],\n",
       " ['Drama', 'Fantasy', 'Horror'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Drama', 'Sport'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Action', 'Drama', 'Thriller'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Action', 'Adventure'],\n",
       " ['Action', 'Adventure', 'Romance'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Crime', 'Drama'],\n",
       " ['Comedy', 'Horror'],\n",
       " ['Comedy', 'Fantasy', 'Romance'],\n",
       " ['Drama'],\n",
       " ['Drama'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Adventure', 'Sci-Fi', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Biography', 'Drama', 'Romance'],\n",
       " ['Comedy', 'Fantasy'],\n",
       " ['Comedy', 'Drama', 'Fantasy'],\n",
       " ['Comedy'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Adventure', 'Comedy', 'Horror'],\n",
       " ['Comedy', 'Mystery'],\n",
       " ['Drama'],\n",
       " ['Adventure', 'Drama', 'Fantasy'],\n",
       " ['Drama', 'Sport'],\n",
       " ['Action', 'Adventure'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Action', 'Drama', 'Sci-Fi'],\n",
       " ['Action', 'Mystery', 'Sci-Fi'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Action', 'Crime', 'Fantasy'],\n",
       " ['Biography', 'Comedy', 'Drama'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Biography', 'Crime', 'Drama'],\n",
       " ['Drama', 'Sport'],\n",
       " ['Adventure', 'Comedy', 'Drama'],\n",
       " ['Action', 'Adventure', 'Thriller'],\n",
       " ['Comedy', 'Fantasy', 'Horror'],\n",
       " ['Drama', 'Sport'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Drama', 'History', 'Thriller'],\n",
       " ['Animation', 'Action', 'Adventure'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Action', 'Comedy', 'Family'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Comedy'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Comedy'],\n",
       " ['Drama', 'Fantasy', 'Romance'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Comedy'],\n",
       " ['Comedy', 'Sci-Fi'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Animation', 'Action', 'Adventure'],\n",
       " ['Horror'],\n",
       " ['Action', 'Biography', 'Crime'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Drama', 'Mystery', 'Thriller'],\n",
       " ['Drama', 'History', 'Thriller'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Adventure', 'Comedy'],\n",
       " ['Action', 'Thriller'],\n",
       " ['Comedy', 'Music'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Crime'],\n",
       " ['Comedy', 'Drama', 'Horror'],\n",
       " ['Drama'],\n",
       " ['Drama', 'Mystery', 'Romance'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Drama'],\n",
       " ['Action', 'Drama', 'Thriller'],\n",
       " ['Drama'],\n",
       " ['Action', 'Horror', 'Romance'],\n",
       " ['Action', 'Drama', 'Fantasy'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Drama', 'Fantasy', 'Romance'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Action', 'Mystery', 'Thriller'],\n",
       " ['Horror', 'Mystery', 'Thriller'],\n",
       " ['Action', 'Horror', 'Sci-Fi'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Comedy'],\n",
       " ['Action', 'Adventure', 'Horror'],\n",
       " ['Action', 'Adventure', 'Thriller'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Comedy', 'Crime', 'Drama'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Comedy'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Animation', 'Family', 'Fantasy'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Thriller'],\n",
       " ['Adventure', 'Horror', 'Mystery'],\n",
       " ['Action', 'Sci-Fi'],\n",
       " ['Adventure', 'Comedy', 'Drama'],\n",
       " ['Animation', 'Action', 'Adventure'],\n",
       " ['Drama', 'Horror'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Action', 'Horror', 'Mystery'],\n",
       " ['Action', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Drama'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Comedy', 'Crime'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Horror', 'Mystery', 'Thriller'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Drama', 'Mystery', 'Sci-Fi'],\n",
       " ['Adventure', 'Comedy', 'Family'],\n",
       " ['Action', 'Adventure', 'Crime'],\n",
       " ['Action', 'Crime', 'Mystery'],\n",
       " ['Mystery', 'Thriller'],\n",
       " ['Action', 'Sci-Fi', 'Thriller'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Biography', 'Crime', 'Drama'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Biography', 'Comedy', 'Drama'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Drama'],\n",
       " ['Drama', 'War'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Drama', 'Romance', 'Sci-Fi'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Animation', 'Action', 'Adventure'],\n",
       " ['Adventure', 'Comedy', 'Drama'],\n",
       " ['Comedy', 'Drama', 'Family'],\n",
       " ['Drama', 'Romance', 'Thriller'],\n",
       " ['Comedy', 'Crime', 'Drama'],\n",
       " ['Animation', 'Comedy', 'Family'],\n",
       " ['Drama', 'Horror', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Action', 'Horror', 'Sci-Fi'],\n",
       " ['Action', 'Crime', 'Sport'],\n",
       " ['Drama', 'Horror', 'Sci-Fi'],\n",
       " ['Drama', 'Horror', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Mystery', 'Sci-Fi', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Sci-Fi', 'Thriller'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Comedy', 'Drama', 'Music'],\n",
       " ['Drama', 'Fantasy', 'Romance'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Drama', 'Sci-Fi', 'Thriller'],\n",
       " ['Drama', 'War'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Sci-Fi', 'Thriller'],\n",
       " ['Adventure', 'Drama', 'Horror'],\n",
       " ['Comedy', 'Drama', 'Music'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Adventure', 'Fantasy'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Biography', 'History', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Action', 'Drama', 'History'],\n",
       " ['Biography', 'Comedy', 'Drama'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Action', 'Biography', 'Drama'],\n",
       " ['Action', 'Drama', 'Sci-Fi'],\n",
       " ['Adventure', 'Horror'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Mystery'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Action', 'Sci-Fi', 'Thriller'],\n",
       " ['Action', 'Sci-Fi', 'Thriller'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Action', 'Crime', 'Mystery'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Crime', 'Drama'],\n",
       " ['Mystery', 'Thriller'],\n",
       " ['Mystery', 'Sci-Fi', 'Thriller'],\n",
       " ['Action', 'Mystery', 'Sci-Fi'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Drama', 'Mystery', 'Sci-Fi'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Biography', 'Drama', 'Sport'],\n",
       " ['Drama'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Biography', 'Drama', 'Romance'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Drama', 'Sci-Fi', 'Thriller'],\n",
       " ['Drama', 'Romance', 'Thriller'],\n",
       " ['Mystery', 'Thriller'],\n",
       " ['Mystery', 'Thriller'],\n",
       " ['Action', 'Drama', 'Fantasy'],\n",
       " ['Action', 'Adventure', 'Biography'],\n",
       " ['Adventure', 'Comedy', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Thriller'],\n",
       " ['Fantasy', 'Horror'],\n",
       " ['Horror', 'Mystery'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Animation', 'Comedy', 'Family'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Biography', 'Drama', 'Sport'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Drama', 'History'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Mystery'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Action'],\n",
       " ['Action', 'Adventure', 'Family'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Biography', 'Drama', 'Sport'],\n",
       " ['Action', 'Fantasy', 'Thriller'],\n",
       " ['Biography', 'Drama', 'Sport'],\n",
       " ['Action', 'Drama', 'Fantasy'],\n",
       " ['Adventure', 'Sci-Fi', 'Thriller'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Drama', 'Mystery', 'Thriller'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Comedy', 'Romance', 'Sport'],\n",
       " ['Comedy', 'Family'],\n",
       " ['Drama', 'Horror', 'Mystery'],\n",
       " ['Action', 'Drama', 'Sport'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Drama', 'Mystery', 'Sci-Fi'],\n",
       " ['Animation', 'Action', 'Comedy'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Animation', 'Action', 'Adventure'],\n",
       " ['Crime', 'Drama'],\n",
       " ['Drama'],\n",
       " ['Drama'],\n",
       " ['Comedy', 'Crime'],\n",
       " ['Drama'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Drama', 'Fantasy', 'Romance'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Drama', 'Fantasy', 'Thriller'],\n",
       " ['Biography', 'Crime', 'Drama'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Sci-Fi'],\n",
       " ['Action', 'Biography', 'Drama'],\n",
       " ['Action', 'Comedy', 'Romance'],\n",
       " ['Adventure', 'Comedy', 'Drama'],\n",
       " ['Comedy', 'Crime', 'Drama'],\n",
       " ['Action', 'Fantasy', 'Horror'],\n",
       " ['Drama', 'Horror'],\n",
       " ['Horror'],\n",
       " ['Action', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Mystery'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Adventure', 'Comedy', 'Family'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Comedy'],\n",
       " ['Comedy', 'Drama', 'Horror'],\n",
       " ['Drama', 'Horror', 'Thriller'],\n",
       " ['Animation', 'Adventure', 'Family'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Mystery', 'Romance', 'Sci-Fi'],\n",
       " ['Crime', 'Drama'],\n",
       " ['Drama', 'Horror', 'Mystery'],\n",
       " ['Comedy'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Comedy', 'Drama', 'Thriller'],\n",
       " ['Comedy', 'Western'],\n",
       " ['Drama', 'History', 'War'],\n",
       " ['Drama', 'Horror', 'Sci-Fi'],\n",
       " ['Drama'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Fantasy', 'Horror', 'Thriller'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Action', 'Comedy', 'Fantasy'],\n",
       " ['Drama', 'Horror', 'Musical'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Horror', 'Mystery', 'Thriller'],\n",
       " ['Comedy', 'Music'],\n",
       " ['Drama'],\n",
       " ['Biography', 'Crime', 'Drama'],\n",
       " ['Drama'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Drama'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Drama'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Adventure', 'Comedy', 'Romance'],\n",
       " ['Comedy', 'Crime', 'Drama'],\n",
       " ['Adventure', 'Drama', 'Thriller'],\n",
       " ['Biography', 'Crime', 'Drama'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Drama', 'History', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Comedy'],\n",
       " ['Horror'],\n",
       " ['Action', 'Crime', 'Mystery'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Comedy'],\n",
       " ['Action', 'Drama', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Drama', 'Mystery', 'Thriller'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Action', 'Fantasy', 'Horror'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Drama', 'Mystery', 'Thriller'],\n",
       " ['Action', 'Horror', 'Sci-Fi'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Adventure', 'Drama', 'Fantasy'],\n",
       " ['Drama', 'Family'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Drama', 'Romance', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Thriller'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Crime', 'Drama', 'Horror'],\n",
       " ['Comedy', 'Fantasy'],\n",
       " ['Action', 'Comedy', 'Crime'],\n",
       " ['Adventure', 'Drama', 'Romance'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Crime', 'Horror', 'Thriller'],\n",
       " ['Romance', 'Sci-Fi', 'Thriller'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Crime', 'Drama'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Animation', 'Fantasy'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Drama', 'Mystery', 'War'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Animation', 'Comedy', 'Family'],\n",
       " ['Comedy'],\n",
       " ['Horror', 'Mystery', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Comedy'],\n",
       " ['Drama'],\n",
       " ['Adventure', 'Biography', 'Drama'],\n",
       " ['Comedy'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Action', 'Drama', 'Family'],\n",
       " ['Comedy', 'Fantasy', 'Horror'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Drama', 'Mystery', 'Romance'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Thriller'],\n",
       " ['Comedy'],\n",
       " ['Adventure', 'Comedy', 'Sci-Fi'],\n",
       " ['Comedy', 'Drama', 'Fantasy'],\n",
       " ['Mystery', 'Thriller'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Adventure', 'Drama', 'Family'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Action', 'Drama', 'Romance'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Comedy'],\n",
       " ['Action', 'Biography', 'Drama'],\n",
       " ['Drama', 'Mystery', 'Romance'],\n",
       " ['Adventure', 'Drama', 'Western'],\n",
       " ['Drama', 'Music', 'Romance'],\n",
       " ['Comedy', 'Romance', 'Western'],\n",
       " ['Thriller'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Horror', 'Mystery'],\n",
       " ['Comedy', 'Crime', 'Drama'],\n",
       " ['Action', 'Comedy', 'Romance'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Adventure', 'Drama'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Drama'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Biography', 'Drama'],\n",
       " ['Drama', 'Music'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Drama', 'Thriller', 'War'],\n",
       " ['Action', 'Mystery', 'Thriller'],\n",
       " ['Horror', 'Sci-Fi', 'Thriller'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Action', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Drama', 'Mystery', 'Romance'],\n",
       " ['Drama'],\n",
       " ['Action', 'Adventure', 'Thriller'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Animation', 'Action', 'Adventure'],\n",
       " ['Drama', 'Fantasy', 'Mystery'],\n",
       " ['Drama', 'Sci-Fi'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Action', 'Thriller'],\n",
       " ['Comedy'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Action', 'Mystery', 'Thriller'],\n",
       " ['Action', 'Mystery', 'Sci-Fi'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Biography', 'Drama', 'Thriller'],\n",
       " ['Drama'],\n",
       " ['Action', 'Adventure', 'Family'],\n",
       " ['Animation', 'Comedy', 'Family'],\n",
       " ['Action', 'Crime', 'Drama'],\n",
       " ['Comedy'],\n",
       " ['Comedy', 'Crime', 'Thriller'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Animation', 'Comedy', 'Drama'],\n",
       " ['Action', 'Crime', 'Thriller'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Adventure', 'Biography', 'Drama'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Action', 'Comedy', 'Sci-Fi'],\n",
       " ['Comedy', 'Fantasy', 'Horror'],\n",
       " ['Comedy', 'Crime'],\n",
       " ['Animation', 'Action', 'Adventure'],\n",
       " ['Action', 'Drama', 'Thriller'],\n",
       " ['Fantasy', 'Horror'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Biography', 'Drama', 'Romance'],\n",
       " ['Action', 'Drama', 'History'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Horror', 'Mystery', 'Thriller'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Adventure', 'Biography', 'Drama'],\n",
       " ['Horror', 'Mystery', 'Thriller'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Drama', 'Romance', 'War'],\n",
       " ['Adventure', 'Fantasy', 'Mystery'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Drama', 'Horror', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Horror', 'Thriller'],\n",
       " ['Comedy'],\n",
       " ['Drama', 'Sport'],\n",
       " ['Comedy', 'Family'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Action', 'Adventure', 'Comedy'],\n",
       " ['Comedy'],\n",
       " ['Mystery', 'Romance', 'Thriller'],\n",
       " ['Crime', 'Drama'],\n",
       " ['Action', 'Comedy'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Biography', 'Drama', 'Romance'],\n",
       " ['Comedy', 'Crime'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Drama'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Action', 'Thriller'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Thriller'],\n",
       " ['Biography', 'Drama', 'Sport'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Drama', 'Music'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Animation', 'Action', 'Adventure'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Biography', 'Crime', 'Drama'],\n",
       " ['Horror'],\n",
       " ['Biography', 'Drama', 'Mystery'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Animation', 'Drama', 'Romance'],\n",
       " ['Comedy', 'Family'],\n",
       " ['Drama'],\n",
       " ['Mystery', 'Thriller'],\n",
       " ['Drama', 'Fantasy', 'Horror'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Comedy', 'Family'],\n",
       " ['Action', 'Adventure', 'Thriller'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Thriller'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Drama', 'Horror', 'Sci-Fi'],\n",
       " ['Comedy', 'Horror', 'Romance'],\n",
       " ['Drama'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Biography', 'Comedy', 'Drama'],\n",
       " ['Drama', 'Mystery', 'Romance'],\n",
       " ['Animation', 'Adventure', 'Comedy'],\n",
       " ['Drama', 'Romance', 'Sci-Fi'],\n",
       " ['Drama'],\n",
       " ['Drama', 'Fantasy'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Comedy', 'Horror', 'Thriller'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Crime', 'Drama'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Action', 'Drama', 'Family'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Action', 'Thriller', 'War'],\n",
       " ['Action', 'Comedy', 'Horror'],\n",
       " ['Biography', 'Drama', 'Sport'],\n",
       " ['Adventure', 'Comedy', 'Drama'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Action', 'Adventure', 'Crime'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Animation', 'Action', 'Adventure'],\n",
       " ['Action', 'Crime', 'Sci-Fi'],\n",
       " ['Drama'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Crime', 'Thriller'],\n",
       " ['Comedy', 'Horror', 'Sci-Fi'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Drama', 'Fantasy', 'Horror'],\n",
       " ['Thriller'],\n",
       " ['Adventure', 'Drama', 'Family'],\n",
       " ['Mystery', 'Sci-Fi', 'Thriller'],\n",
       " ['Biography', 'Crime', 'Drama'],\n",
       " ['Drama', 'Fantasy', 'Horror'],\n",
       " ['Action', 'Adventure', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Horror'],\n",
       " ['Crime', 'Drama', 'Fantasy'],\n",
       " ['Adventure', 'Family', 'Fantasy'],\n",
       " ['Action', 'Adventure', 'Drama'],\n",
       " ['Action', 'Comedy', 'Horror'],\n",
       " ['Comedy', 'Drama', 'Family'],\n",
       " ['Action', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Adventure', 'Drama', 'Fantasy'],\n",
       " ['Drama'],\n",
       " ['Drama'],\n",
       " ['Comedy'],\n",
       " ['Drama'],\n",
       " ['Comedy', 'Drama', 'Music'],\n",
       " ['Drama', 'Fantasy', 'Music'],\n",
       " ['Drama'],\n",
       " ['Thriller'],\n",
       " ['Comedy', 'Horror'],\n",
       " ['Action', 'Comedy', 'Sport'],\n",
       " ['Horror'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Action', 'Drama', 'Thriller'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Horror', 'Mystery'],\n",
       " ['Adventure', 'Drama', 'Fantasy'],\n",
       " ['Thriller'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Action', 'Sci-Fi', 'Thriller'],\n",
       " ['Fantasy', 'Mystery', 'Thriller'],\n",
       " ['Biography', 'Drama'],\n",
       " ['Crime', 'Drama'],\n",
       " ['Action', 'Adventure', 'Sci-Fi'],\n",
       " ['Adventure'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Comedy', 'Drama'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Adventure', 'Comedy', 'Drama'],\n",
       " ['Action', 'Sci-Fi', 'Thriller'],\n",
       " ['Comedy', 'Romance'],\n",
       " ['Action', 'Fantasy', 'Horror'],\n",
       " ['Crime', 'Drama', 'Thriller'],\n",
       " ['Action', 'Drama', 'Thriller'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Drama', 'Sci-Fi', 'Thriller'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Crime', 'Horror', 'Thriller'],\n",
       " ['Drama'],\n",
       " ['Drama', 'Mystery', 'Thriller'],\n",
       " ['Adventure', 'Biography'],\n",
       " ['Adventure', 'Biography', 'Crime'],\n",
       " ['Action', 'Horror', 'Thriller'],\n",
       " ['Action', 'Adventure', 'Western'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Drama', 'Mystery', 'Thriller'],\n",
       " ['Comedy', 'Drama', 'Musical'],\n",
       " ['Horror', 'Mystery'],\n",
       " ['Biography', 'Drama', 'Sport'],\n",
       " ['Comedy', 'Family', 'Romance'],\n",
       " ['Drama', 'Mystery', 'Thriller'],\n",
       " ['Comedy'],\n",
       " ['Drama'],\n",
       " ['Drama', 'Thriller'],\n",
       " ['Biography', 'Drama', 'Family'],\n",
       " ['Comedy', 'Drama', 'Family'],\n",
       " ['Drama', 'Fantasy', 'Musical'],\n",
       " ['Comedy'],\n",
       " ['Adventure', 'Family'],\n",
       " ['Adventure', 'Comedy', 'Fantasy'],\n",
       " ['Horror', 'Thriller'],\n",
       " ['Drama', 'Romance'],\n",
       " ['Horror'],\n",
       " ['Biography', 'Drama', 'History'],\n",
       " ['Action', 'Adventure', 'Fantasy'],\n",
       " ['Drama', 'Family', 'Music'],\n",
       " ['Comedy', 'Drama', 'Romance'],\n",
       " ['Action', 'Adventure', 'Horror'],\n",
       " ['Comedy'],\n",
       " ['Crime', 'Drama', 'Mystery'],\n",
       " ['Horror'],\n",
       " ['Drama', 'Music', 'Romance'],\n",
       " ['Adventure', 'Comedy'],\n",
       " ['Comedy', 'Family', 'Fantasy']]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 统计分类的类表\n",
    "temp_list = df[\"Genre\"].str.split(',').tolist()\n",
    "temp_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Fantasy',\n",
       " 'History',\n",
       " 'Sci-Fi',\n",
       " 'Adventure',\n",
       " 'Drama',\n",
       " 'War',\n",
       " 'Crime',\n",
       " 'Family',\n",
       " 'Comedy',\n",
       " 'Sport',\n",
       " 'Biography',\n",
       " 'Western',\n",
       " 'Animation',\n",
       " 'Romance',\n",
       " 'Mystery',\n",
       " 'Horror',\n",
       " 'Music',\n",
       " 'Action',\n",
       " 'Thriller',\n",
       " 'Musical']"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "genre_list = list(set([i for j in temp_list for i in j]))\n",
    "genre_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Fantasy</th>\n",
       "      <th>History</th>\n",
       "      <th>Sci-Fi</th>\n",
       "      <th>Adventure</th>\n",
       "      <th>Drama</th>\n",
       "      <th>War</th>\n",
       "      <th>Crime</th>\n",
       "      <th>Family</th>\n",
       "      <th>Comedy</th>\n",
       "      <th>Sport</th>\n",
       "      <th>Biography</th>\n",
       "      <th>Western</th>\n",
       "      <th>Animation</th>\n",
       "      <th>Romance</th>\n",
       "      <th>Mystery</th>\n",
       "      <th>Horror</th>\n",
       "      <th>Music</th>\n",
       "      <th>Action</th>\n",
       "      <th>Thriller</th>\n",
       "      <th>Musical</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>995</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>996</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>997</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>998</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>999</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1000 rows × 20 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "     Fantasy  History  Sci-Fi  Adventure  Drama  War  Crime  Family  Comedy  \\\n",
       "0        0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "1        0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "2        0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "3        0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "4        0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "..       ...      ...     ...        ...    ...  ...    ...     ...     ...   \n",
       "995      0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "996      0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "997      0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "998      0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "999      0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "\n",
       "     Sport  Biography  Western  Animation  Romance  Mystery  Horror  Music  \\\n",
       "0      0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "1      0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "2      0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "3      0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "4      0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "..     ...        ...      ...        ...      ...      ...     ...    ...   \n",
       "995    0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "996    0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "997    0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "998    0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "999    0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "\n",
       "     Action  Thriller  Musical  \n",
       "0       0.0       0.0      0.0  \n",
       "1       0.0       0.0      0.0  \n",
       "2       0.0       0.0      0.0  \n",
       "3       0.0       0.0      0.0  \n",
       "4       0.0       0.0      0.0  \n",
       "..      ...       ...      ...  \n",
       "995     0.0       0.0      0.0  \n",
       "996     0.0       0.0      0.0  \n",
       "997     0.0       0.0      0.0  \n",
       "998     0.0       0.0      0.0  \n",
       "999     0.0       0.0      0.0  \n",
       "\n",
       "[1000 rows x 20 columns]"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 构造全为0的数组\n",
    "zeros_df = pd.DataFrame(np.zeros((df.shape[0],len(genre_list))), columns=genre_list)\n",
    "zeros_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Fantasy</th>\n",
       "      <th>History</th>\n",
       "      <th>Sci-Fi</th>\n",
       "      <th>Adventure</th>\n",
       "      <th>Drama</th>\n",
       "      <th>War</th>\n",
       "      <th>Crime</th>\n",
       "      <th>Family</th>\n",
       "      <th>Comedy</th>\n",
       "      <th>Sport</th>\n",
       "      <th>Biography</th>\n",
       "      <th>Western</th>\n",
       "      <th>Animation</th>\n",
       "      <th>Romance</th>\n",
       "      <th>Mystery</th>\n",
       "      <th>Horror</th>\n",
       "      <th>Music</th>\n",
       "      <th>Action</th>\n",
       "      <th>Thriller</th>\n",
       "      <th>Musical</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>995</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>996</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>997</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>998</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>999</th>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1000 rows × 20 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "     Fantasy  History  Sci-Fi  Adventure  Drama  War  Crime  Family  Comedy  \\\n",
       "0        0.0      0.0     1.0        1.0    0.0  0.0    0.0     0.0     0.0   \n",
       "1        0.0      0.0     1.0        1.0    0.0  0.0    0.0     0.0     0.0   \n",
       "2        0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "3        0.0      0.0     0.0        0.0    0.0  0.0    0.0     1.0     1.0   \n",
       "4        1.0      0.0     0.0        1.0    0.0  0.0    0.0     0.0     0.0   \n",
       "..       ...      ...     ...        ...    ...  ...    ...     ...     ...   \n",
       "995      0.0      0.0     0.0        0.0    1.0  0.0    1.0     0.0     0.0   \n",
       "996      0.0      0.0     0.0        0.0    0.0  0.0    0.0     0.0     0.0   \n",
       "997      0.0      0.0     0.0        0.0    1.0  0.0    0.0     0.0     0.0   \n",
       "998      0.0      0.0     0.0        1.0    0.0  0.0    0.0     0.0     1.0   \n",
       "999      1.0      0.0     0.0        0.0    0.0  0.0    0.0     1.0     1.0   \n",
       "\n",
       "     Sport  Biography  Western  Animation  Romance  Mystery  Horror  Music  \\\n",
       "0      0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "1      0.0        0.0      0.0        0.0      0.0      1.0     0.0    0.0   \n",
       "2      0.0        0.0      0.0        0.0      0.0      0.0     1.0    0.0   \n",
       "3      0.0        0.0      0.0        1.0      0.0      0.0     0.0    0.0   \n",
       "4      0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "..     ...        ...      ...        ...      ...      ...     ...    ...   \n",
       "995    0.0        0.0      0.0        0.0      0.0      1.0     0.0    0.0   \n",
       "996    0.0        0.0      0.0        0.0      0.0      0.0     1.0    0.0   \n",
       "997    0.0        0.0      0.0        0.0      1.0      0.0     0.0    1.0   \n",
       "998    0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "999    0.0        0.0      0.0        0.0      0.0      0.0     0.0    0.0   \n",
       "\n",
       "     Action  Thriller  Musical  \n",
       "0       1.0       0.0      0.0  \n",
       "1       0.0       0.0      0.0  \n",
       "2       0.0       1.0      0.0  \n",
       "3       0.0       0.0      0.0  \n",
       "4       1.0       0.0      0.0  \n",
       "..      ...       ...      ...  \n",
       "995     0.0       0.0      0.0  \n",
       "996     0.0       0.0      0.0  \n",
       "997     0.0       0.0      0.0  \n",
       "998     0.0       0.0      0.0  \n",
       "999     0.0       0.0      0.0  \n",
       "\n",
       "[1000 rows x 20 columns]"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 每部电影出现某一分类时在该位置赋值为1\n",
    "for i in range(df.shape[0]):\n",
    "    zeros_df.loc[i, temp_list[i]] = 1\n",
    "zeros_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Fantasy      101.0\n",
       "History       29.0\n",
       "Sci-Fi       120.0\n",
       "Adventure    259.0\n",
       "Drama        513.0\n",
       "War           13.0\n",
       "Crime        150.0\n",
       "Family        51.0\n",
       "Comedy       279.0\n",
       "Sport         18.0\n",
       "Biography     81.0\n",
       "Western        7.0\n",
       "Animation     49.0\n",
       "Romance      141.0\n",
       "Mystery      106.0\n",
       "Horror       119.0\n",
       "Music         16.0\n",
       "Action       303.0\n",
       "Thriller     195.0\n",
       "Musical        5.0\n",
       "dtype: float64"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 统计每个分类的电影的数量\n",
    "genre_count = zeros_df.sum(axis=0)\n",
    "genre_count"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Musical        5.0\n",
       "Western        7.0\n",
       "War           13.0\n",
       "Music         16.0\n",
       "Sport         18.0\n",
       "History       29.0\n",
       "Animation     49.0\n",
       "Family        51.0\n",
       "Biography     81.0\n",
       "Fantasy      101.0\n",
       "Mystery      106.0\n",
       "Horror       119.0\n",
       "Sci-Fi       120.0\n",
       "Romance      141.0\n",
       "Crime        150.0\n",
       "Thriller     195.0\n",
       "Adventure    259.0\n",
       "Comedy       279.0\n",
       "Action       303.0\n",
       "Drama        513.0\n",
       "dtype: float64"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 排序\n",
    "genre_count = genre_count.sort_values()\n",
    "genre_count"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAABQAAAAICCAYAAACQi2ByAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Il7ecAAAACXBIWXMAAAxOAAAMTgF/d4wjAAAqLklEQVR4nO3dfbhsV10f8O9PrgTJDSB9LhKJmkcqqGkkanwBidw0CqYFEitWjC9NBRJfaoupllRqG5WoWBrQhgYQH2NiQhQVNQiGKAkELuQiMSAJpZJ4CUGpqS+Bi4SXZPWPvQ/Mncw5d845M+fcu+7n8zznOTN79qxZa7+svfd31sxUay0AAAAAQJ8+Z7srAAAAAAAsjwAQAAAAADomAAQAAACAjgkAAQAAAKBjAkAAAAAA6JgAEAAAAAA6tmO7K3DUUUe1Xbt2bXc1AAAAAOCw9KEPfeiTrbWjVnt82wPAXbt25c4779zuagAAAADAYamq7lrrcR8BBgAAAICOCQABAAAAoGMCQAAAAADomAAQAAAAADomAAQAAACAjgkAAQAAAKBjAkAAAAAA6JgAEAAAAAA6JgAEAAAAgI4JAAEAAACgYwJAAAAAAOiYABAAAAAAOiYABAAAAICOCQABAAAAoGMCQAAAAADomAAQAAAAADomAAQAAACAjgkAAQAAAKBjAkAAAAAA6JgAEAAAAAA6JgAEAAAAgI7t2O4KAAAAAECurOWVfVZbXtmHASMAAQAAAKBjAkAAAAAA6JgAEAAAAAA6JgAEAAAAgI4JAAEAAACgYwJAAAAAAOiYABAAAAAAOiYABAAAAICOCQAB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mMljSDL0r09YGU21gX7o6rHuD87w0e1Z200myt6qdq5mVj8xt9baG8bgac846ZyxXYut5fpMHzefk+SeDKM7P5XhHOH3tq96C/XzGbbfpyf55an1uNovjl6eIeT6uySfyrA/f3CVeX88ySur6ocyXLif3Vr7v7O28wW1Z02ttWtr+L66t2T42Nw5GT51tBmvTPKyGkb+HpPh0zJda629bonXNdPnRP+Y4TvS/jjDNeFHJ+b9gwyB1k+M87dxW5u+Zvv6NV5v+njzR0keVFUvz3D+/6HVnthau2WZ2/Iq2+v+JL8x9pE3JvnNDOHe/Z6e4ePp08vi5Rn6sjdlWJ6TlnlOtJbpdX5PhlHKs/rcea8/Vju/OpT8UA3fY/jBDPX7ihnz3O/8J6u/Gb7Wuf8Rp47QdgPcT1Xta60dv931OJyNgcYjkzy1jR/55vBSVT+Z4d3Sc1pr7zjY/Fulho8mXT3e/XSG0OgnW2tzf6F6DR833Ndau3TO+d+S4V3np7XD4+sb1rRd+2dV/UCG0VT/rbV29cHmX8Dr6YcA2LRD9ZwINkoACAAAAAAd8x2AAAAAANAxASAAAAAAdEwACAAAAAAdEwACAAAAQMcEgAAAAADQMQEgAAAAAHTs/wO8vkp2SwmooAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 1600x640 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 画图\n",
    "_x = genre_count.index\n",
    "_y = genre_count.values\n",
    "plt.figure(figsize=(20,8), dpi=80)\n",
    "plt.bar(range(len(_x)),_y,width=0.4, color=\"orange\")\n",
    "plt.xticks(range(len(_x)),_x)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "matplotlib跟Stata绘图不太一样,matplotlib绘图x数据写在前面"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python [conda env:analyze]",
   "language": "python",
   "name": "conda-env-analyze-py"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
